]> git.lizzy.rs Git - rust.git/blob - src/test/ui/save-analysis/issue-59134-0.rs
Merge commit '3e4179766bcecd712824da04356621b8df012ea4' into sync-from-clippy
[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() {}