mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
264 B
Rust
13 lines
264 B
Rust
// compile-flags: -Zsave-analysis
|
|
|
|
// Check that this doesn't ICE when processing associated const (field expr).
|
|
|
|
pub fn f() {
|
|
trait Trait {}
|
|
impl dyn Trait {
|
|
const FLAG: u32 = bogus.field; //~ ERROR cannot find value `bogus`
|
|
}
|
|
}
|
|
|
|
fn main() {}
|