mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-10 08:57:36 +00:00
13 lines
300 B
Rust
13 lines
300 B
Rust
// 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";
|
|
//~^ the trait `Qux` is not dyn compatible
|
|
//~| the trait `Qux` is not dyn compatible
|
|
//~| the trait `Qux` is not dyn compatible
|
|
|
|
fn main() {}
|