Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
impl-trait
/
issues
/
issue-84919.rs
blob: 77d27d7c06b6c3fc511240ca3e11fd8edbba62e3 [
file
] [
log
] [
blame
]
trait
Trait
{}
impl
Trait
for
()
{}
fn
foo
<
'a: '
a
>()
{
let
_x
:
impl
Trait
=
();
//~^ `impl Trait` only allowed in function and inherent method argument and return types
}
fn
main
()
{}