]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/pat-shadow-in-nested-binding.rs
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / pattern / pat-shadow-in-nested-binding.rs
1 #[allow(non_camel_case_types)]
2 struct foo(usize);
3
4 fn main() {
5     let (foo, _) = (2, 3); //~ ERROR let bindings cannot shadow tuple structs
6 }