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

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

10 lines
144 B
Rust
Raw Normal View History

mod A {
struct C;
}
fn main() {
A::C = 1;
2019-12-22 18:42:15 +00:00
//~^ ERROR: invalid left-hand side of assignment
2016-02-22 22:33:38 +00:00
//~| ERROR: struct `C` is private
}