mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
16 lines
227 B
Rust
16 lines
227 B
Rust
use m::S;
|
|
|
|
mod m {
|
|
pub struct S(u8);
|
|
|
|
mod n {
|
|
use S;
|
|
fn f() {
|
|
S(10);
|
|
//~^ ERROR expected function, tuple struct or tuple variant, found struct `S`
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|