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 {
|
pub enum ClosureStyle {
|
||||||
/// `impl FnX(i32, i32) -> i32`, where `FnX` is the most special trait between `Fn`, `FnMut`, `FnOnce` that the
|
/// `impl FnX(i32, i32) -> i32`, where `FnX` is the most special trait between `Fn`, `FnMut`, `FnOnce` that the
|
||||||
/// closure implements. This is the default.
|
/// closure implements. This is the default.
|
||||||
|
// FIXME: Allow rendering non capturing closures as plain function pointers?
|
||||||
ImplFn,
|
ImplFn,
|
||||||
/// `|i32, i32| -> i32`
|
/// `|i32, i32| -> i32`
|
||||||
RANotation,
|
RANotation,
|
||||||
|
|
|
@ -121,11 +121,11 @@ fn main() {
|
||||||
// ^ move
|
// ^ move
|
||||||
// ^ (
|
// ^ (
|
||||||
// ^ &foo
|
// ^ &foo
|
||||||
// ^ ,
|
// ^ , $
|
||||||
// ^ bar
|
// ^ bar
|
||||||
// ^ ,
|
// ^ , $
|
||||||
// ^ baz
|
// ^ baz
|
||||||
// ^ ,
|
// ^ , $
|
||||||
// ^ qux
|
// ^ qux
|
||||||
// ^ )
|
// ^ )
|
||||||
foo;
|
foo;
|
||||||
|
@ -137,11 +137,11 @@ fn main() {
|
||||||
// ^ move
|
// ^ move
|
||||||
// ^ (
|
// ^ (
|
||||||
// ^ &foo
|
// ^ &foo
|
||||||
// ^ ,
|
// ^ , $
|
||||||
// ^ &bar
|
// ^ &bar
|
||||||
// ^ ,
|
// ^ , $
|
||||||
// ^ &baz
|
// ^ &baz
|
||||||
// ^ ,
|
// ^ , $
|
||||||
// ^ &qux
|
// ^ &qux
|
||||||
// ^ )
|
// ^ )
|
||||||
&foo;
|
&foo;
|
||||||
|
@ -161,7 +161,7 @@ fn main() {
|
||||||
// ^ move
|
// ^ move
|
||||||
// ^ (
|
// ^ (
|
||||||
// ^ &mut baz
|
// ^ &mut baz
|
||||||
// ^ ,
|
// ^ , $
|
||||||
// ^ &mut qux
|
// ^ &mut qux
|
||||||
// ^ )
|
// ^ )
|
||||||
baz = NonCopy;
|
baz = NonCopy;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue