summaryrefslogtreecommitdiffstats
path: root/tests/ui/save-analysis/issue-59134-1.rs
blob: 3cb629777a497297c5945a99c13b89751c4677d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags: -Zsave-analysis

// Check that this doesn't ICE when processing associated const (type).

fn func() {
    trait Trait {
        type MyType;
        const CONST: Self::MyType = bogus.field; //~ ERROR cannot find value `bogus`
    }
}

fn main() {}