1 error[E0515]: cannot return value referencing temporary value
2 --> $DIR/wf-misc-methods-issue-28609.rs:32:5
4 LL | s.transmute_inherent(&mut 42) //~ ERROR does not live long enough
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^--^
7 | | temporary value created here
8 | returns a value referencing data owned by the current function
10 error[E0515]: cannot return value referencing local variable `four`
11 --> $DIR/wf-misc-methods-issue-28609.rs:46:5
13 LL | s.bomb = Some(&four); //~ ERROR does not live long enough
14 | ----- `four` is borrowed here
16 | ^^ returns a value referencing data owned by the current function
18 error[E0515]: cannot return value referencing local variable `four`
19 --> $DIR/wf-misc-methods-issue-28609.rs:53:5
21 LL | s.bomb = Some(&four); //~ ERROR does not live long enough
22 | ----- `four` is borrowed here
24 | ^^^ returns a value referencing data owned by the current function
26 error[E0515]: cannot return value referencing temporary value
27 --> $DIR/wf-misc-methods-issue-28609.rs:63:5
29 LL | s << &mut 3 //~ ERROR does not live long enough
32 | | temporary value created here
33 | returns a value referencing data owned by the current function
35 error[E0515]: cannot return value referencing temporary value
36 --> $DIR/wf-misc-methods-issue-28609.rs:68:5
38 LL | s.shl(&mut 3) //~ ERROR does not live long enough
41 | | temporary value created here
42 | returns a value referencing data owned by the current function
44 error[E0515]: cannot return value referencing temporary value
45 --> $DIR/wf-misc-methods-issue-28609.rs:73:5
47 LL | S2::shl(s, &mut 3) //~ ERROR does not live long enough
50 | | temporary value created here
51 | returns a value referencing data owned by the current function
53 error: aborting due to 6 previous errors
55 For more information about this error, try `rustc --explain E0515`.