Skip to content

Commit

Permalink
One more test
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamovitz committed Oct 18, 2021
1 parent 5b78907 commit d25b4ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ui/trailing_zero_sized_array_without_repr.rs
Expand Up @@ -167,6 +167,11 @@ struct ConstParamNonZeroDefault<const N: usize = 1> {
last: [usize; N],
}

struct TwoGenericParams<T, const N: usize> {
field: i32,
last: [T; N],
}

type A = ConstParamZeroDefault;
type B = ConstParamZeroDefault<0>;
type C = ConstParamNoDefault<0>;
Expand Down

0 comments on commit d25b4ee

Please sign in to comment.