Sign in
rust
/
rust
/
3d58b04b2dfc6833cc90988ca4d925fcfa69964f
/
.
/
tests
/
ui
/
traits
/
overflow-computing-ambiguity.rs
blob: b8f11efeda283ad689c2a3a89299a30eee1cb64c [
file
]
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
}