fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: lifetime must precede `mut` 2 --> $DIR/issue-73568-lifetime-after-mut.rs:2:13 3 | 4LL | fn x<'a>(x: &mut 'a i32){} 5 | ^^^^^^^ help: place the lifetime before `mut`: `&'a mut` 6 7error[E0178]: expected a path on the left-hand side of `+`, not `&mut 'a` 8 --> $DIR/issue-73568-lifetime-after-mut.rs:14:13 9 | 10LL | fn y<'a>(y: &mut 'a + Send) { 11 | ^^^^^^^^^^^^^^ help: try adding parentheses: `&mut ('a + Send)` 12 13error: lifetime must precede `mut` 14 --> $DIR/issue-73568-lifetime-after-mut.rs:6:22 15 | 16LL | fn w<$lt>(w: &mut $lt i32) {} 17 | ^^^^^^^^ help: place the lifetime before `mut`: `&$lt mut` 18... 19LL | mac!('a); 20 | -------- in this macro invocation 21 | 22 = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info) 23 24error[E0423]: expected value, found trait `Send` 25 --> $DIR/issue-73568-lifetime-after-mut.rs:17:28 26 | 27LL | let z = y as &mut 'a + Send; 28 | ^^^^ not a value 29 30error[E0224]: at least one trait is required for an object type 31 --> $DIR/issue-73568-lifetime-after-mut.rs:14:18 32 | 33LL | fn y<'a>(y: &mut 'a + Send) { 34 | ^^ 35 36error: aborting due to 5 previous errors 37 38Some errors have detailed explanations: E0178, E0224, E0423. 39For more information about an error, try `rustc --explain E0178`.