Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
4cf34cb75268d13a3ec08476058e96fb5b1c1eef
/
.
/
tests
/
ui
/
consts
/
erroneous_type_in_const_return_value.rs
blob: 304211f77da72f06799234cb8943b4ff1094cd22 [
file
] [
log
] [
blame
]
//! 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
EEK_ZERO
:
&[
Eek
]
=
&[];
fn
main
()
{}