Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
issues
/
issue-92186.rs
blob: 73c50b6e41c5dfaa81f313924457c612603b62f9 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
#![
feature
(
generic_const_exprs
)]
#![
allow
(
incomplete_features
)]
pub
struct
Foo
<
const
N
:
usize
>;
pub
trait
Bar
<
T
>
{}
impl
<
T
>
Bar
<
T
>
for
Foo
<{
1
}>
{}
impl
<
T
>
Bar
<
T
>
for
Foo
<{
2
}>
{}
fn
main
()
{}