diff options
Diffstat (limited to 'tests/ui/trait-bounds/issue-93008.rs')
-rw-r--r-- | tests/ui/trait-bounds/issue-93008.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/trait-bounds/issue-93008.rs b/tests/ui/trait-bounds/issue-93008.rs new file mode 100644 index 000000000..f4d21a160 --- /dev/null +++ b/tests/ui/trait-bounds/issue-93008.rs @@ -0,0 +1,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() +} |