summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3601.rs
blob: c86ca24e7075533be93e2fb071a47df34a6d83ca (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(const_generics)]

trait A {
    fn foo(&self);
}

pub struct B<const N: usize>([usize; N]);

impl<const N: usize> A for B<{ N }> {
    fn foo(&self) {}
}