mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
21 lines
812 B
Plaintext
21 lines
812 B
Plaintext
warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
|
--> $DIR/maybe-polarity-pass.rs:14:20
|
|
|
|
|
LL | fn bar<T: ?Sized + ?Trait2 + ?Trait1 + ?Trait4>(_: &T) {}
|
|
| ^^^^^^^
|
|
|
|
warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
|
--> $DIR/maybe-polarity-pass.rs:14:30
|
|
|
|
|
LL | fn bar<T: ?Sized + ?Trait2 + ?Trait1 + ?Trait4>(_: &T) {}
|
|
| ^^^^^^^
|
|
|
|
warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
|
--> $DIR/maybe-polarity-pass.rs:14:40
|
|
|
|
|
LL | fn bar<T: ?Sized + ?Trait2 + ?Trait1 + ?Trait4>(_: &T) {}
|
|
| ^^^^^^^
|
|
|
|
warning: 3 warnings emitted
|
|
|