Skip to content

Commit 6996af3

Browse files
committed
bless the tests
1 parent 70b59ff commit 6996af3

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

tests/ui/eii/type_checking/type_params_149983.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55

66
#[eii]
77
fn foo<T>() {}
8+
//~^ ERROR externally implementable items may not have type parameters
9+
10+
fn main() {}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0044]: externally implementable items may not have type parameters
2+
--> $DIR/type_params_149983.rs:7:1
3+
|
4+
LL | fn foo<T>() {}
5+
| ^^^^^^^^^^^ can't have type parameters
6+
|
7+
= help: replace the type parameters with concrete types like `u32`
8+
9+
error: aborting due to 1 previous error
10+
11+
For more information about this error, try `rustc --explain E0044`.

0 commit comments

Comments
 (0)