summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-88844.rs
blob: 116c75aabdbdf4ed02f7322f7e8302c21480852f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {}