rust/tests/ui/diagnostic-width/long-E0609.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
259 B
Rust
Raw Permalink Normal View History

2025-02-18 01:16:16 +00:00
//@ compile-flags: --diagnostic-width=60 -Zwrite-long-types-to-disk=yes
2025-02-18 01:16:16 +00:00
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) {
2025-02-18 03:54:04 +00:00
x.field; //~ ERROR no field `field` on type `(...
2025-02-18 01:16:16 +00:00
}
fn main() {}