blob: 556e0c73d1af6376d17baa87168047b2f0bfd0e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error: compilation successful
--> $DIR/E0505.rs:15:1
|
LL | / fn main() { #![rustc_error] // rust-lang/rust#49855
LL | | let x = Value{};
LL | | {
LL | | let _ref_to_val: &Value = &x;
LL | | eat(x); //~ ERROR E0505
LL | | }
LL | | }
| |_^
error: aborting due to previous error
|