]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-88844.rs
Rollup merge of #100220 - scottmcm:fix-by-ref-sized, r=joshtriplett
[rust.git] / src / test / 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() {}