Sign in
◑
Theme
rust
/
rust
/
7bb6510fc1899b008837a376a7fdf31b341cc1bb
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
type-alias-impl-trait-const.rs
blob: 6b37552fed145d437c1001bbcec0c1d86b89c610 [
file
]
#![
feature
(
type_alias_impl_trait
)]
//@ check-pass
// Ensures that `const` items can constrain an opaque `impl Trait`.
use
std
::
fmt
::
Debug
;
pub
type
Foo
=
impl
Debug
;
const
_FOO
:
Foo
=
5
;
fn
main
()
{}