blob: ba2b2f7f7b3b63ccbdd770a5222c64a564ded4c3 [file] [log] [blame] [edit]
//@ build-pass
//@ compile-flags: -Zmir-opt-level=3 --crate-type=lib
#![feature(trivial_bounds)]
#![allow(trivial_bounds)]
trait Foo {
fn test(self);
}
fn baz<T>()
where
&'static str: Foo,
{
"Foo".test()
}