blob: ba2b2f7f7b3b63ccbdd770a5222c64a564ded4c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//@ 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()
}
|