@@ -35,13 +35,13 @@ LL | fn bar<T: ?Trait1 + ?Trait2>(_: T) {}
35
35
= help: add `#![feature(more_maybe_bounds)]` to the crate attributes to enable
36
36
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
37
37
38
- warning : relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
38
+ error : relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
39
39
--> $DIR/feature-gate-more-maybe-bounds.rs:12:11
40
40
|
41
41
LL | fn bar<T: ?Trait1 + ?Trait2>(_: T) {}
42
42
| ^^^^^^^
43
43
44
- warning : relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
44
+ error : relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
45
45
--> $DIR/feature-gate-more-maybe-bounds.rs:12:21
46
46
|
47
47
LL | fn bar<T: ?Trait1 + ?Trait2>(_: T) {}
@@ -53,19 +53,19 @@ error[E0203]: type parameter has more than one relaxed default bound, only one i
53
53
LL | fn baz<T: ?Trait + ?Trait>(_ : T) {}
54
54
| ^^^^^^ ^^^^^^
55
55
56
- warning : relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
56
+ error : relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
57
57
--> $DIR/feature-gate-more-maybe-bounds.rs:19:11
58
58
|
59
59
LL | fn baz<T: ?Trait + ?Trait>(_ : T) {}
60
60
| ^^^^^^
61
61
62
- warning : relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
62
+ error : relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
63
63
--> $DIR/feature-gate-more-maybe-bounds.rs:19:20
64
64
|
65
65
LL | fn baz<T: ?Trait + ?Trait>(_ : T) {}
66
66
| ^^^^^^
67
67
68
- error: aborting due to 5 previous errors; 4 warnings emitted
68
+ error: aborting due to 9 previous errors
69
69
70
70
Some errors have detailed explanations: E0203, E0658.
71
71
For more information about an error, try `rustc --explain E0203`.
0 commit comments