]> git.lizzy.rs Git - rust.git/blob - src/test/ui/save-analysis/issue-59134-0.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / save-analysis / issue-59134-0.rs
1 // compile-flags: -Zsave-analysis
2
3 // Check that this doesn't ICE when processing associated const (field expr).
4
5 pub fn f() {
6     trait Trait {}
7     impl dyn Trait {
8         const FLAG: u32 = bogus.field; //~ ERROR cannot find value `bogus`
9     }
10 }
11
12 fn main() {}