rust/tests/ui/traits/new-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
170 B
Rust
Raw Normal View History

2023-03-29 08:36:17 -05:00
// compile-flags: -Ztrait-solver=next
// 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() {}