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