Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
impl-trait
/
issues
/
issue-54840.rs
blob: 910d23f1d93863402a24bed47186f446a11a3238 [
file
] [
log
] [
blame
]
use
std
::
ops
::
Add
;
fn
main
()
{
let
i
:
i32
=
0
;
let
j
:
&
impl
Add
=
&
i
;
//~^ `impl Trait` only allowed in function and inherent method argument and return types
}