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