]> git.lizzy.rs Git - rust.git/blob - src/test/ui/save-analysis/issue-59134-0.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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() {}