]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-88844.rs
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper
[rust.git] / tests / ui / typeck / issue-88844.rs
1 // Regression test for #88844.
2
3 struct Struct { value: i32 }
4 //~^ NOTE: similarly named struct `Struct` defined here
5
6 impl Stuct {
7 //~^ ERROR: cannot find type `Stuct` in this scope [E0412]
8 //~| HELP: a struct with a similar name exists
9     fn new() -> Self {
10         Self { value: 42 }
11     }
12 }
13
14 fn main() {}