bless the tests

This commit is contained in:
Jana Dönszelmann 2026-01-11 16:52:46 +01:00
parent d25f4718ad
commit b64a9be97e
No known key found for this signature in database
2 changed files with 14 additions and 0 deletions

View file

@ -5,3 +5,6 @@
#[eii]
fn foo<T>() {}
//~^ ERROR externally implementable items may not have type parameters
fn main() {}

View file

@ -0,0 +1,11 @@
error[E0044]: externally implementable items may not have type parameters
--> $DIR/type_params_149983.rs:7:1
|
LL | fn foo<T>() {}
| ^^^^^^^^^^^ can't have type parameters
|
= help: replace the type parameters with concrete types like `u32`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0044`.