mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-27 18:56:24 +00:00
16 lines
324 B
Rust
16 lines
324 B
Rust
//@ compile-flags: --diagnostic-width=60 -Zwrite-long-types-to-disk=yes
|
|
type A = (i32, i32, i32, i32);
|
|
type B = (A, A, A, A);
|
|
type C = (B, B, B, B);
|
|
type D = (C, C, C, C);
|
|
|
|
fn foo(x: D) {
|
|
x + x; //~ ERROR cannot add `(...
|
|
}
|
|
|
|
fn bar(x: D) {
|
|
!x; //~ ERROR cannot apply unary operator `!` to type `(...
|
|
}
|
|
|
|
fn main() {}
|