Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
impl-trait
/
in-bindings
/
bad-nesting.rs
blob: 7f4b44cc691f398b62cc05d83f195b450929d165 [
file
] [
log
] [
blame
]
#![
feature
(
impl_trait_in_bindings
)]
trait
Foo
<
T
>
{}
impl
Foo
<()>
for
()
{}
fn
main
()
{
let
x
:
impl
Foo
<
impl
Sized
>
=
();
//~^ ERROR nested `impl Trait` is not allowed
}