Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
issues
/
issue-69654-run-pass.rs
blob: bd8f1fcddb82e2c36473bb9a5252fb2a5cb1e213 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
trait
Bar
<
T
>
{}
//~ WARN trait `Bar` is never used
impl
<
T
>
Bar
<
T
>
for
[
u8
;
7
]
{}
struct
Foo
<
const
N
:
usize
>
{}
impl
<
const
N
:
usize
>
Foo
<
N
>
where
[
u8
;
N
]:
Bar
<[();
N
]>,
{
fn
foo
()
{}
}
fn
main
()
{
Foo
::
foo
();
}