]> git.lizzy.rs Git - rust.git/blob - src/test/ui/enum/enum-in-scope.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / enum / enum-in-scope.stderr
1 error[E0530]: let bindings cannot shadow tuple structs
2   --> $DIR/enum-in-scope.rs:14:9
3    |
4 LL | struct hello(isize);
5    | -------------------- a tuple struct `hello` is defined here
6 ...
7 LL |     let hello = 0; //~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`.