rust/tests/ui/trait-bounds/issue-93008.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
218 B
Rust
Raw Normal View History

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