2023-07-09 20:10:03 -05:00
|
|
|
#![feature(generic_const_items, trivial_bounds)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
// Ensure that we check if trivial bounds on const items hold or not.
|
|
|
|
|
2024-02-14 06:28:07 -06:00
|
|
|
const UNUSABLE: () = () //~ ERROR evaluation of constant value failed
|
2023-07-09 20:10:03 -05:00
|
|
|
where
|
|
|
|
String: Copy;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = UNUSABLE; //~ ERROR the trait bound `String: Copy` is not satisfied
|
|
|
|
}
|