]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / const-generics / min_const_generics / forbid-self-no-normalize.rs
CommitLineData
5099ac24
FG
1trait AlwaysApplicable {
2 type Assoc;
3}
4impl<T: ?Sized> AlwaysApplicable for T {
5 type Assoc = usize;
6}
7
8trait BindsParam<T> {
9 type ArrayTy;
10}
11impl<T> BindsParam<T> for <T as AlwaysApplicable>::Assoc {
12 type ArrayTy = [u8; Self::MAX]; //~ ERROR generic `Self` types
13}
14
15fn main() {}