1
1
error: return type notation uses `()` instead of `(..)` for elided arguments
2
- --> $DIR/bad-inputs-and-output.rs:19 :24
2
+ --> $DIR/bad-inputs-and-output.rs:18 :24
3
3
|
4
4
LL | fn baz<T: Trait<method(..): Send>>() {}
5
5
| ^^ help: remove the `..`
6
6
7
7
error[E0658]: associated type bounds are unstable
8
- --> $DIR/bad-inputs-and-output.rs:11 :17
8
+ --> $DIR/bad-inputs-and-output.rs:10 :17
9
9
|
10
10
LL | fn foo<T: Trait<method(i32): Send>>() {}
11
11
| ^^^^^^^^^^^^^^^^^
@@ -14,7 +14,7 @@ LL | fn foo<T: Trait<method(i32): Send>>() {}
14
14
= help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable
15
15
16
16
error[E0658]: associated type bounds are unstable
17
- --> $DIR/bad-inputs-and-output.rs:15 :17
17
+ --> $DIR/bad-inputs-and-output.rs:14 :17
18
18
|
19
19
LL | fn bar<T: Trait<method() -> (): Send>>() {}
20
20
| ^^^^^^^^^^^^^^^^^^^^
@@ -31,26 +31,18 @@ LL | #![feature(return_type_notation, async_fn_in_trait)]
31
31
= note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information
32
32
= note: `#[warn(incomplete_features)]` on by default
33
33
34
- warning: the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
35
- --> $DIR/bad-inputs-and-output.rs:3:34
36
- |
37
- LL | #![feature(return_type_notation, async_fn_in_trait)]
38
- | ^^^^^^^^^^^^^^^^^
39
- |
40
- = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
41
-
42
34
error: argument types not allowed with return type notation
43
- --> $DIR/bad-inputs-and-output.rs:11 :23
35
+ --> $DIR/bad-inputs-and-output.rs:10 :23
44
36
|
45
37
LL | fn foo<T: Trait<method(i32): Send>>() {}
46
38
| ^^^^^ help: remove the input types: `()`
47
39
48
40
error: return type not allowed with return type notation
49
- --> $DIR/bad-inputs-and-output.rs:15 :25
41
+ --> $DIR/bad-inputs-and-output.rs:14 :25
50
42
|
51
43
LL | fn bar<T: Trait<method() -> (): Send>>() {}
52
44
| ^^^^^^ help: remove the return type
53
45
54
- error: aborting due to 5 previous errors; 2 warnings emitted
46
+ error: aborting due to 5 previous errors; 1 warning emitted
55
47
56
48
For more information about this error, try `rustc --explain E0658`.
0 commit comments