Skip to content

Commit c77cf40

Browse files
authored
Rollup merge of #108401 - notriddle:notriddle/diagnostics-article, r=compiler-errors
diagnostics: remove inconsistent English article "this" from E0107 Consider [`tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`][issue-102768.stderr], the error message where it gives additional notes about where the associated type is defined, and how the dead code lint doesn't have an article, like in [`tests/ui/lint/dead-code/issue-85255.stderr`][issue-85255.stderr]. They don't have articles, so it seems unnecessary to have one here. [issue-102768.stderr]: https://github.com/rust-lang/rust/blob/07c993eba8b76eae497e98433ae075b00f01be10/tests/ui/const-generics/generic_const_exprs/issue-102768.stderr [issue-85255.stderr]: https://github.com/rust-lang/rust/blob/07c993eba8b76eae497e98433ae075b00f01be10/tests/ui/lint/dead-code/issue-85255.stderr
2 parents 353827a + 0241e49 commit c77cf40

File tree

112 files changed

+340
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+340
-340
lines changed

compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
462462

463463
if self.gen_args.span_ext().is_some() {
464464
format!(
465-
"this {} takes {}{} {} argument{} but {} {} supplied",
465+
"{} takes {}{} {} argument{} but {} {} supplied",
466466
def_kind,
467467
quantifier,
468468
bound,

tests/rustdoc-ui/unable-fulfill-trait.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
1+
error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied
22
--> $DIR/unable-fulfill-trait.rs:4:17
33
|
44
LL | field1: dyn Bar<'a, 'b,>,

tests/ui/argument-suggestions/issue-100154.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this function takes 0 generic arguments but 1 generic argument was supplied
1+
error[E0107]: function takes 0 generic arguments but 1 generic argument was supplied
22
--> $DIR/issue-100154.rs:4:5
33
|
44
LL | foo::<()>(());

tests/ui/async-await/issues/issue-65159.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// edition:2018
44

55
async fn copy() -> Result<()>
6-
//~^ ERROR this enum takes 2 generic arguments
6+
//~^ ERROR enum takes 2 generic arguments
77
{
88
Ok(())
99
}

tests/ui/async-await/issues/issue-65159.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied
1+
error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
22
--> $DIR/issue-65159.rs:5:20
33
|
44
LL | async fn copy() -> Result<()>

tests/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ impl MarketMultiplier {
1414
}
1515

1616
async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_> {
17-
//~^ ERROR this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
18-
//~^^ ERROR this struct takes 1 generic argument but 0 generic arguments were supplied
17+
//~^ ERROR struct takes 0 lifetime arguments but 1 lifetime argument was supplied
18+
//~^^ ERROR struct takes 1 generic argument but 0 generic arguments were supplied
1919
LockedMarket(generator.lock().unwrap().buy())
2020
}
2121

tests/ui/borrowck/issue-82126-mismatched-subst-and-hir.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
1+
error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied
22
--> $DIR/issue-82126-mismatched-subst-and-hir.rs:16:59
33
|
44
LL | async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_> {
@@ -12,7 +12,7 @@ note: struct defined here, with 0 lifetime parameters
1212
LL | struct LockedMarket<T>(T);
1313
| ^^^^^^^^^^^^
1414

15-
error[E0107]: this struct takes 1 generic argument but 0 generic arguments were supplied
15+
error[E0107]: struct takes 1 generic argument but 0 generic arguments were supplied
1616
--> $DIR/issue-82126-mismatched-subst-and-hir.rs:16:59
1717
|
1818
LL | async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_> {

tests/ui/const-generics/generic_const_exprs/issue-102768.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ trait X {
77

88
const _: () = {
99
fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
10-
//~^ ERROR this associated type takes 1 lifetime argument but 0 lifetime arguments
11-
//~| ERROR this associated type takes 0 generic arguments but 1 generic argument
10+
//~^ ERROR associated type takes 1 lifetime argument but 0 lifetime arguments
11+
//~| ERROR associated type takes 0 generic arguments but 1 generic argument
1212
};
1313

1414
fn main() {}

tests/ui/const-generics/generic_const_exprs/issue-102768.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
1+
error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
22
--> $DIR/issue-102768.rs:9:30
33
|
44
LL | fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
@@ -14,7 +14,7 @@ help: add missing lifetime argument
1414
LL | fn f2<'a>(arg: Box<dyn X<Y<'_, 1> = &'a ()>>) {}
1515
| +++
1616

17-
error[E0107]: this associated type takes 0 generic arguments but 1 generic argument was supplied
17+
error[E0107]: associated type takes 0 generic arguments but 1 generic argument was supplied
1818
--> $DIR/issue-102768.rs:9:30
1919
|
2020
LL | fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}

tests/ui/const-generics/generic_const_exprs/issue-76595.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this function takes 2 generic arguments but 1 generic argument was supplied
1+
error[E0107]: function takes 2 generic arguments but 1 generic argument was supplied
22
--> $DIR/issue-76595.rs:15:5
33
|
44
LL | test::<2>();

tests/ui/const-generics/incorrect-number-of-const-args.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this function takes 2 generic arguments but 1 generic argument was supplied
1+
error[E0107]: function takes 2 generic arguments but 1 generic argument was supplied
22
--> $DIR/incorrect-number-of-const-args.rs:6:5
33
|
44
LL | foo::<0>();
@@ -16,7 +16,7 @@ help: add missing generic argument
1616
LL | foo::<0, Y>();
1717
| +++
1818

19-
error[E0107]: this function takes 2 generic arguments but 3 generic arguments were supplied
19+
error[E0107]: function takes 2 generic arguments but 3 generic arguments were supplied
2020
--> $DIR/incorrect-number-of-const-args.rs:9:5
2121
|
2222
LL | foo::<0, 0, 0>();

tests/ui/const-generics/invalid-const-arg-for-type-param.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ struct S;
44

55
fn main() {
66
let _: u32 = 5i32.try_into::<32>().unwrap();
7-
//~^ ERROR this method takes
7+
//~^ ERROR method takes
88

99
S.f::<0>();
1010
//~^ ERROR no method named `f`
1111

1212
S::<0>;
13-
//~^ ERROR this struct takes 0
13+
//~^ ERROR struct takes 0
1414
}

tests/ui/const-generics/invalid-const-arg-for-type-param.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this method takes 0 generic arguments but 1 generic argument was supplied
1+
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
22
--> $DIR/invalid-const-arg-for-type-param.rs:6:23
33
|
44
LL | let _: u32 = 5i32.try_into::<32>().unwrap();
@@ -23,7 +23,7 @@ LL | struct S;
2323
LL | S.f::<0>();
2424
| ^ method not found in `S`
2525

26-
error[E0107]: this struct takes 0 generic arguments but 1 generic argument was supplied
26+
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
2727
--> $DIR/invalid-const-arg-for-type-param.rs:12:5
2828
|
2929
LL | S::<0>;

tests/ui/const-generics/invalid-constant-in-args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ use std::cell::Cell;
22

33
fn main() {
44
let _: Cell<&str, "a"> = Cell::new("");
5-
//~^ ERROR this struct takes 1 generic argument but 2 generic arguments were supplied
5+
//~^ ERROR struct takes 1 generic argument but 2 generic arguments were supplied
66
}

tests/ui/const-generics/invalid-constant-in-args.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this struct takes 1 generic argument but 2 generic arguments were supplied
1+
error[E0107]: struct takes 1 generic argument but 2 generic arguments were supplied
22
--> $DIR/invalid-constant-in-args.rs:4:12
33
|
44
LL | let _: Cell<&str, "a"> = Cell::new("");

tests/ui/const-generics/issues/issue-87493.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ where
77
S: MyTrait,
88
T: MyTrait<Assoc == S::Assoc>,
99
//~^ ERROR: expected one of `,` or `>`, found `==`
10-
//~| ERROR: this trait takes 0 generic arguments but 1 generic argument was supplied
10+
//~| ERROR: trait takes 0 generic arguments but 1 generic argument was supplied
1111
{
1212
}
1313

tests/ui/const-generics/issues/issue-87493.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: if you meant to use an associated type binding, replace `==` with `=`
99
LL | T: MyTrait<Assoc = S::Assoc>,
1010
| ~
1111

12-
error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
12+
error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied
1313
--> $DIR/issue-87493.rs:8:8
1414
|
1515
LL | T: MyTrait<Assoc == S::Assoc>,

tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ struct Bar;
77
const T: usize = 42;
88

99
impl Foo<N = 3> for Bar {
10-
//~^ ERROR this trait takes 1 generic argument but 0 generic arguments were supplied
10+
//~^ ERROR trait takes 1 generic argument but 0 generic arguments were supplied
1111
//~| ERROR associated type bindings are not allowed here
1212
//~| ERROR associated const equality is incomplete
1313
fn do_x(&self) -> [u8; 3] {

tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl Foo<N = 3> for Bar {
77
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
88
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
99

10-
error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
10+
error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied
1111
--> $DIR/issue-89013-no-kw.rs:9:6
1212
|
1313
LL | impl Foo<N = 3> for Bar {

tests/ui/const-generics/parser-error-recovery/issue-89013.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const T: usize = 42;
88

99
impl Foo<N = const 3> for Bar {
1010
//~^ ERROR expected lifetime, type, or constant, found keyword `const`
11-
//~| ERROR this trait takes 1 generic
11+
//~| ERROR trait takes 1 generic
1212
//~| ERROR associated type bindings are not allowed here
1313
//~| ERROR associated const equality is incomplete
1414
fn do_x(&self) -> [u8; 3] {

tests/ui/const-generics/parser-error-recovery/issue-89013.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LL | impl Foo<N = const 3> for Bar {
1919
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
2020
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
2121

22-
error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
22+
error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied
2323
--> $DIR/issue-89013.rs:9:6
2424
|
2525
LL | impl Foo<N = const 3> for Bar {

tests/ui/constructor-lifetime-args.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ enum E<'a, 'b> {
1515
fn main() {
1616
S(&0, &0); // OK
1717
S::<'static>(&0, &0);
18-
//~^ ERROR this struct takes 2 lifetime arguments
18+
//~^ ERROR struct takes 2 lifetime arguments
1919
S::<'static, 'static, 'static>(&0, &0);
20-
//~^ ERROR this struct takes 2 lifetime arguments
20+
//~^ ERROR struct takes 2 lifetime arguments
2121
E::V(&0); // OK
2222
E::V::<'static>(&0);
23-
//~^ ERROR this enum takes 2 lifetime arguments
23+
//~^ ERROR enum takes 2 lifetime arguments
2424
E::V::<'static, 'static, 'static>(&0);
25-
//~^ ERROR this enum takes 2 lifetime arguments
25+
//~^ ERROR enum takes 2 lifetime arguments
2626
}

tests/ui/constructor-lifetime-args.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this struct takes 2 lifetime arguments but 1 lifetime argument was supplied
1+
error[E0107]: struct takes 2 lifetime arguments but 1 lifetime argument was supplied
22
--> $DIR/constructor-lifetime-args.rs:17:5
33
|
44
LL | S::<'static>(&0, &0);
@@ -16,7 +16,7 @@ help: add missing lifetime argument
1616
LL | S::<'static, 'static>(&0, &0);
1717
| +++++++++
1818

19-
error[E0107]: this struct takes 2 lifetime arguments but 3 lifetime arguments were supplied
19+
error[E0107]: struct takes 2 lifetime arguments but 3 lifetime arguments were supplied
2020
--> $DIR/constructor-lifetime-args.rs:19:5
2121
|
2222
LL | S::<'static, 'static, 'static>(&0, &0);
@@ -30,7 +30,7 @@ note: struct defined here, with 2 lifetime parameters: `'a`, `'b`
3030
LL | struct S<'a, 'b>(&'a u8, &'b u8);
3131
| ^ -- --
3232

33-
error[E0107]: this enum takes 2 lifetime arguments but 1 lifetime argument was supplied
33+
error[E0107]: enum takes 2 lifetime arguments but 1 lifetime argument was supplied
3434
--> $DIR/constructor-lifetime-args.rs:22:8
3535
|
3636
LL | E::V::<'static>(&0);
@@ -48,7 +48,7 @@ help: add missing lifetime argument
4848
LL | E::V::<'static, 'static>(&0);
4949
| +++++++++
5050

51-
error[E0107]: this enum takes 2 lifetime arguments but 3 lifetime arguments were supplied
51+
error[E0107]: enum takes 2 lifetime arguments but 3 lifetime arguments were supplied
5252
--> $DIR/constructor-lifetime-args.rs:24:8
5353
|
5454
LL | E::V::<'static, 'static, 'static>(&0);

tests/ui/error-codes/E0107.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,39 @@ enum Bar {
1111

1212
struct Baz<'a, 'b, 'c> {
1313
buzz: Buzz<'a>,
14-
//~^ ERROR this struct takes 2 lifetime arguments
14+
//~^ ERROR struct takes 2 lifetime arguments
1515
//~| HELP add missing lifetime argument
1616

1717
bar: Bar<'a>,
18-
//~^ ERROR this enum takes 0 lifetime arguments
18+
//~^ ERROR enum takes 0 lifetime arguments
1919
//~| HELP remove these generics
2020

2121
foo2: Foo<'a, 'b, 'c>,
22-
//~^ ERROR this struct takes 1 lifetime argument
22+
//~^ ERROR struct takes 1 lifetime argument
2323
//~| HELP remove these lifetime arguments
2424

2525
qux1: Qux<'a, 'b, i32>,
26-
//~^ ERROR this struct takes 1 lifetime argument
26+
//~^ ERROR struct takes 1 lifetime argument
2727
//~| HELP remove this lifetime argument
2828

2929
qux2: Qux<'a, i32, 'b>,
30-
//~^ ERROR this struct takes 1 lifetime argument
30+
//~^ ERROR struct takes 1 lifetime argument
3131
//~| HELP remove this lifetime argument
3232

3333
qux3: Qux<'a, 'b, 'c, i32>,
34-
//~^ ERROR this struct takes 1 lifetime argument
34+
//~^ ERROR struct takes 1 lifetime argument
3535
//~| HELP remove these lifetime arguments
3636

3737
qux4: Qux<'a, i32, 'b, 'c>,
38-
//~^ ERROR this struct takes 1 lifetime argument
38+
//~^ ERROR struct takes 1 lifetime argument
3939
//~| HELP remove these lifetime arguments
4040

4141
qux5: Qux<'a, 'b, i32, 'c>,
42-
//~^ ERROR this struct takes 1 lifetime argument
42+
//~^ ERROR struct takes 1 lifetime argument
4343
//~| HELP remove this lifetime argument
4444

4545
quux: Quux<'a, i32, 'b>,
46-
//~^ ERROR this struct takes 0 lifetime arguments
46+
//~^ ERROR struct takes 0 lifetime arguments
4747
//~| HELP remove this lifetime argument
4848
}
4949

@@ -53,7 +53,7 @@ pub trait T {
5353
}
5454

5555
fn trait_bound_generic<I: T<u8, u16>>(_i: I) {
56-
//~^ ERROR this trait takes 0 generic arguments
56+
//~^ ERROR trait takes 0 generic arguments
5757
//~| HELP replace the generic bounds with the associated types
5858
}
5959

tests/ui/error-codes/E0107.stderr

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this struct takes 2 lifetime arguments but 1 lifetime argument was supplied
1+
error[E0107]: struct takes 2 lifetime arguments but 1 lifetime argument was supplied
22
--> $DIR/E0107.rs:13:11
33
|
44
LL | buzz: Buzz<'a>,
@@ -16,7 +16,7 @@ help: add missing lifetime argument
1616
LL | buzz: Buzz<'a, 'a>,
1717
| ++++
1818

19-
error[E0107]: this enum takes 0 lifetime arguments but 1 lifetime argument was supplied
19+
error[E0107]: enum takes 0 lifetime arguments but 1 lifetime argument was supplied
2020
--> $DIR/E0107.rs:17:10
2121
|
2222
LL | bar: Bar<'a>,
@@ -30,7 +30,7 @@ note: enum defined here, with 0 lifetime parameters
3030
LL | enum Bar {
3131
| ^^^
3232

33-
error[E0107]: this struct takes 1 lifetime argument but 3 lifetime arguments were supplied
33+
error[E0107]: struct takes 1 lifetime argument but 3 lifetime arguments were supplied
3434
--> $DIR/E0107.rs:21:11
3535
|
3636
LL | foo2: Foo<'a, 'b, 'c>,
@@ -44,7 +44,7 @@ note: struct defined here, with 1 lifetime parameter: `'a`
4444
LL | struct Foo<'a>(&'a str);
4545
| ^^^ --
4646

47-
error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
47+
error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied
4848
--> $DIR/E0107.rs:25:11
4949
|
5050
LL | qux1: Qux<'a, 'b, i32>,
@@ -58,7 +58,7 @@ note: struct defined here, with 1 lifetime parameter: `'a`
5858
LL | struct Qux<'a, T>(&'a T);
5959
| ^^^ --
6060

61-
error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
61+
error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied
6262
--> $DIR/E0107.rs:29:11
6363
|
6464
LL | qux2: Qux<'a, i32, 'b>,
@@ -72,7 +72,7 @@ note: struct defined here, with 1 lifetime parameter: `'a`
7272
LL | struct Qux<'a, T>(&'a T);
7373
| ^^^ --
7474

75-
error[E0107]: this struct takes 1 lifetime argument but 3 lifetime arguments were supplied
75+
error[E0107]: struct takes 1 lifetime argument but 3 lifetime arguments were supplied
7676
--> $DIR/E0107.rs:33:11
7777
|
7878
LL | qux3: Qux<'a, 'b, 'c, i32>,
@@ -86,7 +86,7 @@ note: struct defined here, with 1 lifetime parameter: `'a`
8686
LL | struct Qux<'a, T>(&'a T);
8787
| ^^^ --
8888

89-
error[E0107]: this struct takes 1 lifetime argument but 3 lifetime arguments were supplied
89+
error[E0107]: struct takes 1 lifetime argument but 3 lifetime arguments were supplied
9090
--> $DIR/E0107.rs:37:11
9191
|
9292
LL | qux4: Qux<'a, i32, 'b, 'c>,
@@ -100,7 +100,7 @@ note: struct defined here, with 1 lifetime parameter: `'a`
100100
LL | struct Qux<'a, T>(&'a T);
101101
| ^^^ --
102102

103-
error[E0107]: this struct takes 1 lifetime argument but 3 lifetime arguments were supplied
103+
error[E0107]: struct takes 1 lifetime argument but 3 lifetime arguments were supplied
104104
--> $DIR/E0107.rs:41:11
105105
|
106106
LL | qux5: Qux<'a, 'b, i32, 'c>,
@@ -114,7 +114,7 @@ note: struct defined here, with 1 lifetime parameter: `'a`
114114
LL | struct Qux<'a, T>(&'a T);
115115
| ^^^ --
116116

117-
error[E0107]: this struct takes 0 lifetime arguments but 2 lifetime arguments were supplied
117+
error[E0107]: struct takes 0 lifetime arguments but 2 lifetime arguments were supplied
118118
--> $DIR/E0107.rs:45:11
119119
|
120120
LL | quux: Quux<'a, i32, 'b>,
@@ -128,7 +128,7 @@ note: struct defined here, with 0 lifetime parameters
128128
LL | struct Quux<T>(T);
129129
| ^^^^
130130

131-
error[E0107]: this trait takes 0 generic arguments but 2 generic arguments were supplied
131+
error[E0107]: trait takes 0 generic arguments but 2 generic arguments were supplied
132132
--> $DIR/E0107.rs:55:27
133133
|
134134
LL | fn trait_bound_generic<I: T<u8, u16>>(_i: I) {

0 commit comments

Comments
 (0)