2025-01-02 18:31:40 +01:00
|
|
|
// 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";
|
2024-11-20 14:19:36 -08:00
|
|
|
//~^ the trait `Qux` is not dyn compatible
|
2025-02-04 02:37:13 +00:00
|
|
|
//~| the trait `Qux` is not dyn compatible
|
|
|
|
|
//~| the trait `Qux` is not dyn compatible
|
2025-01-02 18:31:40 +01:00
|
|
|
|
|
|
|
|
fn main() {}
|