]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issue-73568-lifetime-after-mut.rs
2 fn x
<'a
>(x
: &mut 'a
i32){}
//~ ERROR lifetime must precede `mut`
6 fn w
<$lt
>(w
: &mut $lt
i32) {}
7 //~^ ERROR lifetime must precede `mut`
13 // avoid false positives
14 fn y
<'a
>(y
: &mut 'a
+ Send
) {
15 //~^ ERROR expected a path on the left-hand side of `+`, not `&mut 'a`
16 //~| WARNING trait objects without an explicit `dyn` are deprecated
17 //~| ERROR at least one trait is required for an object type
18 let z
= y
as &mut 'a
+ Send
;
19 //~^ ERROR expected value, found trait `Send`
20 //~| WARNING trait objects without an explicit `dyn` are deprecated