mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 19:32:01 +00:00
13 lines
295 B
Rust
13 lines
295 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: () = ()
|
|
where
|
|
String: Copy;
|
|
|
|
fn main() {
|
|
let _ = UNUSABLE; //~ ERROR the trait bound `String: Copy` is not satisfied
|
|
}
|