Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
const-generics
/
mgca
/
inherent-const-gating.rs
blob: c39b8e6f7f64a22ae40d0464cbbe52aa937d919d [
file
] [
log
] [
blame
]
#![
feature
(
min_generic_const_args
)]
#![
allow
(
incomplete_features
)]
struct
S
;
impl
S
{
const
N
:
usize
=
42
;
}
fn
main
()
{
let
_x
:
[();
S
::
N
]
=
todo
!();
//~^ ERROR inherent associated types are unstable
}