mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
14 lines
249 B
Rust
14 lines
249 B
Rust
// Enormous types are allowed if they are never actually instantiated.
|
|
//@ run-pass
|
|
trait Foo {
|
|
type Assoc;
|
|
}
|
|
|
|
impl Foo for [u16; usize::MAX] {
|
|
type Assoc = u32;
|
|
}
|
|
|
|
fn main() {
|
|
let _a: Option<<[u16; usize::MAX] as Foo>::Assoc> = None;
|
|
}
|