]> git.lizzy.rs Git - rust.git/blob - tests/ui/save-analysis/issue-59134-0.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / 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() {}