Fix test fixtures

This commit is contained in:
Lukas Wirth 2023-05-05 14:18:27 +02:00
parent 8081a654da
commit abcdb4bc7d
2 changed files with 8 additions and 7 deletions

View File

@ -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,

View File

@ -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;