1
Fork 0
rust/tests/ui/save-analysis/issue-59134-1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
266 B
Rust
Raw Normal View History

2019-05-09 14:06:36 +02:00
// compile-flags: -Zsave-analysis
// Check that this doesn't ICE when processing associated const (type).
fn func() {
trait Trait {
type MyType;
const CONST: Self::MyType = bogus.field; //~ ERROR cannot find value `bogus`
}
}
2019-05-09 16:15:53 +02:00
fn main() {}