]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/occurs-check/unused-substs-1.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / const-generics / occurs-check / unused-substs-1.rs
CommitLineData
94222f64 1#![feature(generic_const_exprs)]
1b1a35ee
XL
2#![allow(incomplete_features)]
3
4trait Bar<const M: usize> {}
5impl<const N: usize> Bar<N> for A<{ 6 + 1 }> {}
6
7struct A<const N: usize>
8where
9 A<N>: Bar<N>;
10
11fn main() {
cdc7bbd5 12 let _ = A; //~ERROR the trait bound
1b1a35ee 13}