diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/diagnostic-width/long-E0308.rs (renamed from src/test/ui/diagnostic-width/long-E0308.rs) | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/test/ui/diagnostic-width/long-E0308.rs b/tests/ui/diagnostic-width/long-E0308.rs index 3fd7a7110..f021f1029 100644 --- a/src/test/ui/diagnostic-width/long-E0308.rs +++ b/tests/ui/diagnostic-width/long-E0308.rs @@ -1,9 +1,20 @@ // compile-flags: --diagnostic-width=60 // normalize-stderr-test: "long-type-\d+" -> "long-type-hash" -struct Atype<T, K>(T, K); -struct Btype<T, K>(T, K); -struct Ctype<T, K>(T, K); +mod a { + // Force the "short path for unique types" machinery to trip up + pub struct Atype; + pub struct Btype; + pub struct Ctype; +} + +mod b { + pub struct Atype<T, K>(T, K); + pub struct Btype<T, K>(T, K); + pub struct Ctype<T, K>(T, K); +} + +use b::*; fn main() { let x: Atype< |