mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00
11 lines
220 B
Rust
11 lines
220 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";
|
|
//~^ ERROR the trait `Qux` is not dyn compatible
|
|
|
|
fn main() {}
|