rust/tests/ui/const-generics/occurs-check/unused-substs-1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
247 B
Rust
Raw Normal View History

#![feature(generic_const_exprs)]
2020-09-09 02:43:53 -05:00
#![allow(incomplete_features)]
trait Bar<const M: usize> {}
impl<const N: usize> Bar<N> for A<{ 6 + 1 }> {}
struct A<const N: usize>
where
A<N>: Bar<N>;
fn main() {
let _ = A; //~ERROR the trait bound
2020-09-09 02:43:53 -05:00
}