2022-06-11 14:31:33 -07:00
|
|
|
// build-pass
|
|
|
|
// compile-flags: -Zmir-opt-level=3 --crate-type=lib
|
2022-01-17 20:38:38 -08:00
|
|
|
|
2022-06-11 14:31:33 -07:00
|
|
|
#![feature(trivial_bounds)]
|
|
|
|
#![allow(trivial_bounds)]
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn test(self);
|
|
|
|
}
|
|
|
|
fn baz<T>()
|
2022-01-17 20:38:38 -08:00
|
|
|
where
|
2022-06-11 14:31:33 -07:00
|
|
|
&'static str: Foo,
|
2022-01-17 20:38:38 -08:00
|
|
|
{
|
2022-06-11 14:31:33 -07:00
|
|
|
"Foo".test()
|
2022-01-17 20:38:38 -08:00
|
|
|
}
|