rust/tests/ui/error-codes/E0606.rs

5 lines
115 B
Rust
Raw Normal View History

2017-06-07 16:54:51 -05:00
fn main() {
2023-01-17 18:14:56 -06:00
let x = &(&0u8 as u8); //~ ERROR E0606
x as u8; //~ casting `&u8` as `u8` is invalid [E0606]
2017-06-07 16:54:51 -05:00
}