]> git.lizzy.rs Git - rust.git/blob - src/test/ui/save-analysis/issue-59134-0.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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() {}