|
1 |
| -error[E0658]: `?Trait` is not permitted in supertraits |
| 1 | +error[E0658]: relaxed bounds are not permitted in supertrait bounds |
2 | 2 | --> $DIR/feature-gate-more-maybe-bounds.rs:5:15
|
3 | 3 | |
|
4 | 4 | LL | trait Trait3: ?Trait1 {}
|
5 | 5 | | ^^^^^^^
|
6 | 6 | |
|
7 |
| - = help: add `#![feature(more_maybe_bounds)]` to the crate attributes to enable |
8 |
| - = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
9 | 7 |
|
10 |
| -error[E0658]: `?Trait` bounds are only permitted at the point where a type parameter is declared |
11 |
| - --> $DIR/feature-gate-more-maybe-bounds.rs:7:26 |
| 8 | +error[E0658]: this relaxed bound is not permitted here |
| 9 | + --> $DIR/feature-gate-more-maybe-bounds.rs:6:26 |
12 | 10 | |
|
13 | 11 | LL | trait Trait4 where Self: ?Trait1 {}
|
14 | 12 | | ^^^^^^^
|
15 | 13 | |
|
16 |
| - = help: add `#![feature(more_maybe_bounds)]` to the crate attributes to enable |
17 |
| - = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 14 | + = note: in this context, relaxed bounds are only allowed on type parameters defined by the closest item |
18 | 15 |
|
19 |
| -error[E0658]: `?Trait` is not permitted in trait object types |
20 |
| - --> $DIR/feature-gate-more-maybe-bounds.rs:10:28 |
| 16 | +error[E0658]: relaxed bounds are not permitted in trait object types |
| 17 | + --> $DIR/feature-gate-more-maybe-bounds.rs:8:28 |
21 | 18 | |
|
22 | 19 | LL | fn foo(_: Box<dyn Trait1 + ?Trait2>) {}
|
23 | 20 | | ^^^^^^^
|
24 | 21 | |
|
25 |
| - = help: add `#![feature(more_maybe_bounds)]` to the crate attributes to enable |
26 |
| - = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
27 | 22 |
|
28 | 23 | error[E0203]: type parameter has more than one relaxed default bound, only one is supported
|
29 |
| - --> $DIR/feature-gate-more-maybe-bounds.rs:12:11 |
| 24 | + --> $DIR/feature-gate-more-maybe-bounds.rs:10:11 |
30 | 25 | |
|
31 | 26 | LL | fn bar<T: ?Trait1 + ?Trait2>(_: T) {}
|
32 | 27 | | ^^^^^^^ ^^^^^^^
|
33 | 28 | |
|
34 |
| - = help: add `#![feature(more_maybe_bounds)]` to the crate attributes to enable |
35 |
| - = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
36 | 29 |
|
37 | 30 | error: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
38 |
| - --> $DIR/feature-gate-more-maybe-bounds.rs:12:11 |
| 31 | + --> $DIR/feature-gate-more-maybe-bounds.rs:10:11 |
39 | 32 | |
|
40 | 33 | LL | fn bar<T: ?Trait1 + ?Trait2>(_: T) {}
|
41 | 34 | | ^^^^^^^
|
42 | 35 |
|
43 | 36 | error: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
44 |
| - --> $DIR/feature-gate-more-maybe-bounds.rs:12:21 |
| 37 | + --> $DIR/feature-gate-more-maybe-bounds.rs:10:21 |
45 | 38 | |
|
46 | 39 | LL | fn bar<T: ?Trait1 + ?Trait2>(_: T) {}
|
47 | 40 | | ^^^^^^^
|
48 | 41 |
|
49 | 42 | error[E0203]: type parameter has more than one relaxed default bound, only one is supported
|
50 |
| - --> $DIR/feature-gate-more-maybe-bounds.rs:19:11 |
| 43 | + --> $DIR/feature-gate-more-maybe-bounds.rs:17:11 |
51 | 44 | |
|
52 | 45 | LL | fn baz<T: ?Trait + ?Trait>(_ : T) {}
|
53 | 46 | | ^^^^^^ ^^^^^^
|
54 | 47 |
|
55 | 48 | error: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
56 |
| - --> $DIR/feature-gate-more-maybe-bounds.rs:19:11 |
| 49 | + --> $DIR/feature-gate-more-maybe-bounds.rs:17:11 |
57 | 50 | |
|
58 | 51 | LL | fn baz<T: ?Trait + ?Trait>(_ : T) {}
|
59 | 52 | | ^^^^^^
|
60 | 53 |
|
61 | 54 | error: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
62 |
| - --> $DIR/feature-gate-more-maybe-bounds.rs:19:20 |
| 55 | + --> $DIR/feature-gate-more-maybe-bounds.rs:17:20 |
63 | 56 | |
|
64 | 57 | LL | fn baz<T: ?Trait + ?Trait>(_ : T) {}
|
65 | 58 | | ^^^^^^
|
|
0 commit comments