Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
issues
/
issue-68596.rs
blob: 9e450adf5ee547c6b00e2e4ae485ebfc98a71849 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
pub
struct
S
(
u8
);
impl
S
{
pub
fn
get
<
const
A
:
u8
>(&
self
)
->
&
u8
{
&
self
.
0
}
}
fn
main
()
{
const
A
:
u8
=
5
;
let
s
=
S
(
0
);
s
.
get
::<
A
>();
}