rust/tests/ui/traits/next-solver/prefer-param-env-on-ambiguity.rs

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

11 lines
164 B
Rust
Raw Normal View History

2023-12-14 13:11:28 +01:00
// compile-flags: -Znext-solver
2023-03-29 15:36:17 +02:00
// check-pass
trait Foo<'a> {}
trait Bar<'a> {}
impl<'a, T: Bar<'a>> Foo<'a> for T {}
impl<T> Bar<'static> for T {}
fn main() {}