mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-01 05:25:38 +00:00
13 lines
331 B
Rust
13 lines
331 B
Rust
#![feature(generic_const_items, trivial_bounds)]
|
|
#![allow(incomplete_features)]
|
|
|
|
// Ensure that we check if trivial bounds on const items hold or not.
|
|
|
|
const UNUSABLE: () = () //~ ERROR entering unreachable code
|
|
where
|
|
String: Copy;
|
|
|
|
fn main() {
|
|
let _ = UNUSABLE; //~ ERROR the trait bound `String: Copy` is not satisfied
|
|
}
|