Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
impl-trait
/
issues
/
issue-54840.rs
blob: 8f1e0ece03a62ec16b87898c0b78271aa948c07c [
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 return types
}