rust/tests/ui/issues/issue-13407.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
667 B
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error[E0603]: unit struct `C` is private
2018-12-25 15:56:47 +00:00
--> $DIR/issue-13407.rs:6:8
2018-07-15 21:11:54 +00:00
|
LL | A::C = 1;
| ^ private unit struct
|
note: the unit struct `C` is defined here
--> $DIR/issue-13407.rs:2:5
|
LL | struct C;
| ^^^^^^^^^
2018-07-15 21:11:54 +00:00
error[E0308]: mismatched types
--> $DIR/issue-13407.rs:6:5
2018-07-15 21:11:54 +00:00
|
LL | struct C;
| -------- unit struct defined here
...
2018-07-15 21:11:54 +00:00
LL | A::C = 1;
| ^^^^ - this expression has type `{integer}`
2019-12-22 18:42:15 +00:00
| |
| expected integer, found `C`
2018-07-15 21:11:54 +00:00
error: aborting due to 2 previous errors
2018-07-15 21:11:54 +00:00
Some errors have detailed explanations: E0308, E0603.
For more information about an error, try `rustc --explain E0308`.