mirror of https://github.com/rust-lang/rust
15 lines
309 B
Rust
15 lines
309 B
Rust
// Regression test for #88844.
|
|
|
|
struct Struct { value: i32 }
|
|
//~^ NOTE: similarly named struct `Struct` defined here
|
|
|
|
impl Stuct {
|
|
//~^ ERROR: cannot find type `Stuct` in this scope [E0412]
|
|
//~| HELP: a struct with a similar name exists
|
|
fn new() -> Self {
|
|
Self { value: 42 }
|
|
}
|
|
}
|
|
|
|
fn main() {}
|