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

View file

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