mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
13 lines
396 B
Rust
13 lines
396 B
Rust
#![feature(generic_const_items, trivial_bounds)]
|
|
#![allow(incomplete_features, dead_code, trivial_bounds)]
|
|
|
|
// FIXME(generic_const_items): This looks like a bug to me. I expected that we wouldn't emit any
|
|
// errors. I thought we'd skip the evaluation of consts whose bounds don't hold.
|
|
|
|
const UNUSED: () = ()
|
|
where
|
|
String: Copy;
|
|
//~^^^ ERROR evaluation of constant value failed
|
|
|
|
fn main() {}
|