summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-const-items/trivially-unsatisfied-bounds-1.rs
blob: 9243deac8704a10bfed2b5e70d0e0c2e00bb43c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![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() {}