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

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

5 lines
115 B
Rust
Raw Normal View History

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