about summary refs log tree commit diff
path: root/tests/ui/traits/overflow-computing-ambiguity.rs
blob: b8f11efeda283ad689c2a3a89299a30eee1cb64c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
trait Hello {}

struct Foo<'a, T: ?Sized>(&'a T);

impl<'a, T: ?Sized> Hello for Foo<'a, &'a T> where Foo<'a, T>: Hello {}

impl Hello for Foo<'static, i32> {}

fn hello<T: ?Sized + Hello>() {}

fn main() {
    hello();
    //~^ ERROR type annotations needed
}