rust/src/test/ui/save-analysis/issue-59134-1.rs

13 lines
266 B
Rust
Raw Normal View History

2019-05-09 07:06:36 -05: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 09:15:53 -05:00
fn main() {}