mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-24 11:02:59 +00:00
Fix test fixtures
This commit is contained in:
parent
8081a654da
commit
abcdb4bc7d
2 changed files with 8 additions and 7 deletions
|
@ -304,6 +304,7 @@ pub struct HirDisplayWrapper<'a, T> {
|
|||
pub enum ClosureStyle {
|
||||
/// `impl FnX(i32, i32) -> i32`, where `FnX` is the most special trait between `Fn`, `FnMut`, `FnOnce` that the
|
||||
/// closure implements. This is the default.
|
||||
// FIXME: Allow rendering non capturing closures as plain function pointers?
|
||||
ImplFn,
|
||||
/// `|i32, i32| -> i32`
|
||||
RANotation,
|
||||
|
|
|
@ -121,11 +121,11 @@ fn main() {
|
|||
// ^ move
|
||||
// ^ (
|
||||
// ^ &foo
|
||||
// ^ ,
|
||||
// ^ , $
|
||||
// ^ bar
|
||||
// ^ ,
|
||||
// ^ , $
|
||||
// ^ baz
|
||||
// ^ ,
|
||||
// ^ , $
|
||||
// ^ qux
|
||||
// ^ )
|
||||
foo;
|
||||
|
@ -137,11 +137,11 @@ fn main() {
|
|||
// ^ move
|
||||
// ^ (
|
||||
// ^ &foo
|
||||
// ^ ,
|
||||
// ^ , $
|
||||
// ^ &bar
|
||||
// ^ ,
|
||||
// ^ , $
|
||||
// ^ &baz
|
||||
// ^ ,
|
||||
// ^ , $
|
||||
// ^ &qux
|
||||
// ^ )
|
||||
&foo;
|
||||
|
@ -161,7 +161,7 @@ fn main() {
|
|||
// ^ move
|
||||
// ^ (
|
||||
// ^ &mut baz
|
||||
// ^ ,
|
||||
// ^ , $
|
||||
// ^ &mut qux
|
||||
// ^ )
|
||||
baz = NonCopy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue