Sign in
rust
/
rust
/
e6f5b97152a4e96de2b0eae09ffabb25d0eface7
/
.
/
tests
/
ui
/
dyn-compatibility
/
taint-const-eval.rs
blob: 3d1b3b8fe618e466c240d687fe58aa79c09481fa [
file
]
// 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
()
{}