error[E0308]: mismatched types | |
--> $DIR/type-shadow.rs:16:20 | |
| | |
LL | let y: Y = "hello"; //~ ERROR mismatched types | |
| ^^^^^^^ expected isize, found reference | |
| | |
= note: expected type `isize` | |
found type `&'static str` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. |