rust/tests/ui/issues/issue-46472.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
358 B
Plaintext
Raw Normal View History

2019-05-03 06:34:15 +08:00
error[E0515]: cannot return reference to temporary value
--> $DIR/issue-46472.rs:2:5
2017-12-11 01:00:20 +08:00
|
2018-02-23 08:42:32 +08:00
LL | &mut 4
| ^^^^^-
| | |
| | temporary value created here
| returns a reference to data owned by the current function
2017-12-11 01:00:20 +08:00
2019-05-03 06:34:15 +08:00
error: aborting due to previous error
2017-12-11 01:00:20 +08:00
2019-05-03 06:34:15 +08:00
For more information about this error, try `rustc --explain E0515`.