blob: a5c01e1791e74bb4cbbbb174dfb38f15cb6f8f20 [file] [log] [blame]
// Test that we do not attempt to create dyn-incompatible trait objects in const eval.
trait Qux {
fn bar();
}
static FOO: &(dyn Qux + Sync) = "desc";
//~^ ERROR the trait `Qux` is not dyn compatible
//~| ERROR the trait `Qux` is not dyn compatible
fn main() {}