diff options
Diffstat (limited to 'tests/ui/associated-path-shl.rs')
| -rw-r--r-- | tests/ui/associated-path-shl.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/associated-path-shl.rs b/tests/ui/associated-path-shl.rs new file mode 100644 index 00000000000..20a6fd83faa --- /dev/null +++ b/tests/ui/associated-path-shl.rs @@ -0,0 +1,9 @@ +// Check that associated paths starting with `<<` are successfully parsed. + +fn main() { + let _: <<A>::B>::C; //~ ERROR cannot find type `A` in this scope + let _ = <<A>::B>::C; //~ ERROR cannot find type `A` in this scope + let <<A>::B>::C; //~ ERROR cannot find type `A` in this scope + let 0 ..= <<A>::B>::C; //~ ERROR cannot find type `A` in this scope + <<A>::B>::C; //~ ERROR cannot find type `A` in this scope +} |
