Sign in
fuchsia
/
third_party
/
rust
/
1e3b57ee7754702ce9fcef73686b5bcee405dd4a
/
.
/
src
/
test
/
ui
/
feature-gates
/
feature-gate-impl_trait_in_bindings.rs
blob: 39cc64f11a7e38817b3b9851239a5c08a7ef1799 [
file
] [
log
] [
blame
]
const
FOO
:
impl
Copy
=
42
;
//~^ ERROR `impl Trait` not allowed
static
BAR
:
impl
Copy
=
42
;
//~^ ERROR `impl Trait` not allowed
fn
main
()
{
let
foo
=
impl
Copy
=
42
;
//~^ ERROR expected expression, found keyword `impl`
let
foo
:
impl
Copy
=
42
;
}