blob: b22e07ed57be104d76e1ca9b07e98d585acb64c0 [file] [log] [blame]
// { dg-additional-options "-w" }
// There are errors about unused generic parameters, but we can't handle that yet.
// Still, this code is invalid Rust.
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
mod sain {
struct Foo<const N: usize>;
struct Bar<T, const N: usize>;
struct Baz<'l, T, const N: usize>;
}
mod doux {
struct Foo<const N: usize = 15>;
struct Bar<T, const N: usize = { 14 * 2 }>;
const N_DEFAULT: usize = 3;
struct Baz<'l, T, const N: usize = N_DEFAULT>;
}