]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13407.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-13407.stderr
1 error[E0603]: unit struct `C` is private
2   --> $DIR/issue-13407.rs:6:8
3    |
4 LL |     A::C = 1;
5    |        ^ private unit struct
6    |
7 note: the unit struct `C` is defined here
8   --> $DIR/issue-13407.rs:2:5
9    |
10 LL |     struct C;
11    |     ^^^^^^^^^
12
13 error[E0070]: invalid left-hand side of assignment
14   --> $DIR/issue-13407.rs:6:10
15    |
16 LL |     A::C = 1;
17    |     ---- ^
18    |     |
19    |     cannot assign to this expression
20
21 error: aborting due to 2 previous errors
22
23 Some errors have detailed explanations: E0070, E0603.
24 For more information about an error, try `rustc --explain E0070`.