mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
15 lines
261 B
Rust
15 lines
261 B
Rust
//! ICE test #124348
|
|
//! We should not be running const eval if the layout has errors.
|
|
|
|
enum Eek {
|
|
TheConst,
|
|
UnusedByTheConst(Sum),
|
|
//~^ ERROR cannot find type `Sum` in this scope
|
|
}
|
|
|
|
const fn foo() {
|
|
let x: &'static [Eek] = &[];
|
|
}
|
|
|
|
fn main() {}
|