From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/associated-path-shl.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/ui/associated-path-shl.rs (limited to 'tests/ui/associated-path-shl.rs') diff --git a/tests/ui/associated-path-shl.rs b/tests/ui/associated-path-shl.rs new file mode 100644 index 000000000..20a6fd83f --- /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 _: <::B>::C; //~ ERROR cannot find type `A` in this scope + let _ = <::B>::C; //~ ERROR cannot find type `A` in this scope + let <::B>::C; //~ ERROR cannot find type `A` in this scope + let 0 ..= <::B>::C; //~ ERROR cannot find type `A` in this scope + <::B>::C; //~ ERROR cannot find type `A` in this scope +} -- cgit v1.2.3