]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-shadow-in-nested-binding.stderr
Rollup merge of #56710 - jethrogb:jb/sgx-target-features, r=alexcrichton
[rust.git] / src / test / 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:14:10
3    |
4 LL | struct foo(usize);
5    | ------------------ the tuple struct `foo` is defined here
6 ...
7 LL |     let (foo, _) = (2, 3); //~ ERROR let bindings cannot shadow tuple structs
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`.