]> git.lizzy.rs Git - rust.git/blob - tests/ui/trait-bounds/issue-93008.rs
Rollup merge of #106813 - oli-obk:sess_cleanup, r=GuillaumeGomez,petrochenkov
[rust.git] / tests / ui / trait-bounds / issue-93008.rs
1 // build-pass
2 // compile-flags: -Zmir-opt-level=3 --crate-type=lib
3
4 #![feature(trivial_bounds)]
5 #![allow(trivial_bounds)]
6
7 trait Foo {
8     fn test(self);
9 }
10 fn baz<T>()
11 where
12     &'static str: Foo,
13 {
14     "Foo".test()
15 }