Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
impl-trait
/
issues
/
issue-84919.rs
blob: 1012024f21e1d58f1ea1900c5bdaa6beaa89d075 [
file
] [
log
] [
blame
] [
edit
]
trait
Trait
{}
impl
Trait
for
()
{}
fn
foo
<
'a: '
a
>()
{
let
_x
:
impl
Trait
=
();
//~^ ERROR `impl Trait` is not allowed in the type of variable bindings
}
fn
main
()
{}