rust/tests/ui/suggestions/correct-binder-for-arbitrary-bound-sugg.rs

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

17 lines
202 B
Rust
Raw Normal View History

trait Foo
where
for<'a> &'a Self: Bar,
{
}
impl Foo for () {}
trait Bar {}
impl Bar for &() {}
fn foo<T: Foo>() {}
//~^ ERROR the trait bound `for<'a> &'a T: Bar` is not satisfied
fn main() {}