]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-11681.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-11681.stderr
CommitLineData
48663c56
XL
1error[E0515]: cannot return value referencing temporary value
2 --> $DIR/issue-11681.rs:13:10
8faf50e0 3 |
532ac7d7 4LL | let testValue = &Test;
48663c56 5 | ---- temporary value created here
8faf50e0 6LL | return testValue;
48663c56 7 | ^^^^^^^^^ returns a value referencing data owned by the current function
8faf50e0
XL
8
9error: aborting due to previous error
10
48663c56 11For more information about this error, try `rustc --explain E0515`.