blob: ecc8cad2684cde1db135c718d234b7443fe37bee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ run-pass
// Checks that type param defaults are allowed after const params.
#![allow(dead_code)]
struct FixedOutput<'a, const N: usize, T=u32> {
out: &'a [T; N],
}
trait FixedOutputter {
fn out(&self) -> FixedOutput<'_, 10>;
}
fn main() {}
|