diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-10-20 23:48:58 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-10-20 23:54:17 +0200 |
| commit | 8f9826872332fb0d2abd3ffc3889ff4c0e1c3909 (patch) | |
| tree | cb9672e8a39c563fb53b1c5f7519bbc0eaa0b503 /embassy-executor/tests/ui/impl_trait_nested.stderr | |
| parent | f0de0493084759a5e7310c816919996b201f0bc4 (diff) | |
executor: add compile-fail / ui tests.
Diffstat (limited to 'embassy-executor/tests/ui/impl_trait_nested.stderr')
| -rw-r--r-- | embassy-executor/tests/ui/impl_trait_nested.stderr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-executor/tests/ui/impl_trait_nested.stderr b/embassy-executor/tests/ui/impl_trait_nested.stderr new file mode 100644 index 000000000..39592f958 --- /dev/null +++ b/embassy-executor/tests/ui/impl_trait_nested.stderr | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | error: `impl Trait` is not allowed in task arguments. It is syntax sugar for generics, and tasks can't be generic. | ||
| 2 | --> tests/ui/impl_trait_nested.rs:6:22 | ||
| 3 | | | ||
| 4 | 6 | async fn foo(_x: Foo<impl Sized + 'static>) {} | ||
| 5 | | ^^^^^^^^^^^^^^^^^^^^ | ||
