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