fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
908 B32 linesraw
1error: unnecessary parentheses around type
2  --> $DIR/issue-105061-should-lint.rs:11:13
3   |
4LL |     for<'b> (for<'a> fn(Inv<'a>)): Trait<'b>,
5   |             ^                   ^
6   |
7note: the lint level is defined here
8  --> $DIR/issue-105061-should-lint.rs:2:9
9   |
10LL | #![deny(warnings)]
11   |         ^^^^^^^^
12   = note: `#[deny(unused_parens)]` implied by `#[deny(warnings)]`
13help: remove these parentheses
14   |
15LL -     for<'b> (for<'a> fn(Inv<'a>)): Trait<'b>,
16LL +     for<'b> for<'a> fn(Inv<'a>): Trait<'b>,
17   |
18
19error: unnecessary parentheses around type
20  --> $DIR/issue-105061-should-lint.rs:17:16
21   |
22LL |     (dyn Hello<(for<'b> fn(&'b ()))>): Hello<T>
23   |                ^                  ^
24   |
25help: remove these parentheses
26   |
27LL -     (dyn Hello<(for<'b> fn(&'b ()))>): Hello<T>
28LL +     (dyn Hello<for<'b> fn(&'b ())>): Hello<T>
29   |
30
31error: aborting due to 2 previous errors
32