diff options
Diffstat (limited to 'src/test/ui/parser/issues/issue-57819.rs')
-rw-r--r-- | src/test/ui/parser/issues/issue-57819.rs | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/test/ui/parser/issues/issue-57819.rs b/src/test/ui/parser/issues/issue-57819.rs deleted file mode 100644 index 5cafbf439..000000000 --- a/src/test/ui/parser/issues/issue-57819.rs +++ /dev/null @@ -1,47 +0,0 @@ -// run-rustfix - -#![allow(warnings)] - -// This test checks that the following error is emitted and the suggestion works: -// -// ``` -// let _ = vec![1, 2, 3].into_iter().collect::<<<Vec<usize>>(); -// ^^ help: remove extra angle brackets -// ``` - -trait Foo { - type Output; -} - -fn foo<T: Foo>() { - // More complex cases with more than one correct leading `<` character: - - bar::<<<<<T as Foo>::Output>(); - //~^ ERROR unmatched angle bracket - - bar::<<<<T as Foo>::Output>(); - //~^ ERROR unmatched angle bracket - - bar::<<<T as Foo>::Output>(); - //~^ ERROR unmatched angle bracket - - bar::<<T as Foo>::Output>(); -} - -fn bar<T>() {} - -fn main() { - let _ = vec![1, 2, 3].into_iter().collect::<<<<<Vec<usize>>(); - //~^ ERROR unmatched angle bracket - - let _ = vec![1, 2, 3].into_iter().collect::<<<<Vec<usize>>(); - //~^ ERROR unmatched angle bracket - - let _ = vec![1, 2, 3].into_iter().collect::<<<Vec<usize>>(); - //~^ ERROR unmatched angle bracket - - let _ = vec![1, 2, 3].into_iter().collect::<<Vec<usize>>(); - //~^ ERROR unmatched angle bracket - - let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>(); -} |