2021-04-18 07:31:00 -05:00
|
|
|
// run-pass
|
|
|
|
// Checks that type param defaults are allowed after const params.
|
2020-08-06 03:22:32 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
struct FixedOutput<'a, const N: usize, T=u32> {
|
2021-03-29 03:32:27 -05:00
|
|
|
out: &'a [T; N],
|
2020-08-06 03:22:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
trait FixedOutputter {
|
2021-03-29 03:32:27 -05:00
|
|
|
fn out(&self) -> FixedOutput<'_, 10>;
|
2020-08-06 03:22:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|