about summary refs log tree commit diff
path: root/tests/ui/trait-bounds/more_maybe_bounds.stderr
blob: 09c9fc311657e8d32fe7cb2ad4723b67b39e4650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: bound modifier `?` can only be applied to default traits like `Sized`
  --> $DIR/more_maybe_bounds.rs:16:20
   |
LL | fn bar<T: ?Sized + ?Trait2 + ?Trait1 + ?Trait4>(_: &T) {}
   |                    ^^^^^^^

error: bound modifier `?` can only be applied to default traits like `Sized`
  --> $DIR/more_maybe_bounds.rs:16:30
   |
LL | fn bar<T: ?Sized + ?Trait2 + ?Trait1 + ?Trait4>(_: &T) {}
   |                              ^^^^^^^

error: bound modifier `?` can only be applied to default traits like `Sized`
  --> $DIR/more_maybe_bounds.rs:16:40
   |
LL | fn bar<T: ?Sized + ?Trait2 + ?Trait1 + ?Trait4>(_: &T) {}
   |                                        ^^^^^^^

error: aborting due to 3 previous errors