rust/tests/ui/enum/enum-in-scope.rs

8 lines
138 B
Rust
Raw Normal View History

#![allow(non_camel_case_types)]
struct hello(isize);
fn main() {
let hello = 0; //~ERROR let bindings cannot shadow tuple structs
}