1
1
error: return type notation uses `()` instead of `(..)` for elided arguments
2
- --> $DIR/bad-inputs-and-output.rs:18 :24
2
+ --> $DIR/bad-inputs-and-output.rs:20 :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:10 :17
8
+ --> $DIR/bad-inputs-and-output.rs:12 :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:14 :17
17
+ --> $DIR/bad-inputs-and-output.rs:16 :17
18
18
|
19
19
LL | fn bar<T: Trait<method() -> (): Send>>() {}
20
20
| ^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL | fn bar<T: Trait<method() -> (): Send>>() {}
23
23
= help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable
24
24
25
25
warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes
26
- --> $DIR/bad-inputs-and-output.rs:3 :12
26
+ --> $DIR/bad-inputs-and-output.rs:5 :12
27
27
|
28
28
LL | #![feature(return_type_notation, async_fn_in_trait)]
29
29
| ^^^^^^^^^^^^^^^^^^^^
@@ -32,13 +32,13 @@ LL | #![feature(return_type_notation, async_fn_in_trait)]
32
32
= note: `#[warn(incomplete_features)]` on by default
33
33
34
34
error: argument types not allowed with return type notation
35
- --> $DIR/bad-inputs-and-output.rs:10 :23
35
+ --> $DIR/bad-inputs-and-output.rs:12 :23
36
36
|
37
37
LL | fn foo<T: Trait<method(i32): Send>>() {}
38
38
| ^^^^^ help: remove the input types: `()`
39
39
40
40
error: return type not allowed with return type notation
41
- --> $DIR/bad-inputs-and-output.rs:14 :25
41
+ --> $DIR/bad-inputs-and-output.rs:16 :25
42
42
|
43
43
LL | fn bar<T: Trait<method() -> (): Send>>() {}
44
44
| ^^^^^^ help: remove the return type
0 commit comments