mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
14 lines
255 B
Rust
14 lines
255 B
Rust
//@ 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() {}
|