rust/tests/ui/privacy/legacy-ctor-visibility.rs

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

16 lines
227 B
Rust
Raw Normal View History

use m::S;
mod m {
pub struct S(u8);
mod n {
use S;
fn f() {
S(10);
2019-08-03 14:59:05 +00:00
//~^ ERROR expected function, tuple struct or tuple variant, found struct `S`
}
}
}
fn main() {}