]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/pat-shadow-in-nested-binding.stderr
Rollup merge of #106973 - oli-obk:tait_ice_closure_in_impl_header, r=lcnr
[rust.git] / tests / ui / pattern / pat-shadow-in-nested-binding.stderr
1 error[E0530]: let bindings cannot shadow tuple structs
2   --> $DIR/pat-shadow-in-nested-binding.rs:5:10
3    |
4 LL | struct foo(usize);
5    | ------------------ the tuple struct `foo` is defined here
6 ...
7 LL |     let (foo, _) = (2, 3);
8    |          ^^^ cannot be named the same as a tuple struct
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0530`.