mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
16 lines
237 B
Rust
16 lines
237 B
Rust
//@ 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();
|
|
}
|