fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
904 B26 linesraw
1error: unknown start of token: \u{ff06}
2  --> $DIR/fullwidth-ampersand.rs:3:10
3   |
4LL | fn f(_: &&()) -> &() { todo!() }
5   |          ^^
6   |
7help: Unicode character '&' (Fullwidth Ampersand) looks like '&' (Ampersand), but it is not
8   |
9LL | fn f(_: &&()) -> &() { todo!() }
10   |          ~
11
12error[E0106]: missing lifetime specifier
13  --> $DIR/fullwidth-ampersand.rs:3:18
14   |
15LL | fn f(_: &&()) -> &() { todo!() }
16   |         -----     ^ expected named lifetime parameter
17   |
18   = help: this function's return type contains a borrowed value, but the signature does not say which one of argument 1's 2 lifetimes it is borrowed from
19help: consider introducing a named lifetime parameter
20   |
21LL | fn f<'a>(_: &'a &'a ()) -> &'a () { todo!() }
22   |     ++++     ++   ++         ++
23
24error: aborting due to 2 previous errors
25
26For more information about this error, try `rustc --explain E0106`.