2020-09-10 07:18:40 +00:00
|
|
|
// [full] run-pass
|
|
|
|
// revisions: min full
|
2020-08-06 08:22:32 +00:00
|
|
|
// Checks some basic test cases for defaults.
|
2020-09-10 07:18:40 +00:00
|
|
|
#![cfg_attr(full, feature(const_generics))]
|
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-08-06 08:22:32 +00:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
struct FixedOutput<'a, const N: usize, T=u32> {
|
2020-09-10 07:18:40 +00:00
|
|
|
//[min]~^ ERROR type parameters must be declared prior to const parameters
|
2020-08-06 08:22:32 +00:00
|
|
|
out: &'a [T; N],
|
|
|
|
}
|
|
|
|
|
|
|
|
trait FixedOutputter {
|
|
|
|
fn out(&self) -> FixedOutput<'_, 10>;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|