about summary refs log tree commit diff
path: root/tests/ui/trait-bounds/duplicate-relaxed-bounds.stderr
blob: ccc723fc7a653a37585aedae4ca2b0a8b10fdcc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
error[E0203]: duplicate relaxed `Sized` bounds
  --> $DIR/duplicate-relaxed-bounds.rs:1:13
   |
LL | fn dupes<T: ?Sized + ?Sized + ?Iterator + ?Iterator>() {}
   |             ^^^^^^   ^^^^^^

error[E0203]: duplicate relaxed `Iterator` bounds
  --> $DIR/duplicate-relaxed-bounds.rs:1:31
   |
LL | fn dupes<T: ?Sized + ?Sized + ?Iterator + ?Iterator>() {}
   |                               ^^^^^^^^^   ^^^^^^^^^

error: bound modifier `?` can only be applied to `Sized`
  --> $DIR/duplicate-relaxed-bounds.rs:1:31
   |
LL | fn dupes<T: ?Sized + ?Sized + ?Iterator + ?Iterator>() {}
   |                               ^^^^^^^^^

error: bound modifier `?` can only be applied to `Sized`
  --> $DIR/duplicate-relaxed-bounds.rs:1:43
   |
LL | fn dupes<T: ?Sized + ?Sized + ?Iterator + ?Iterator>() {}
   |                                           ^^^^^^^^^

error: bound modifier `?` can only be applied to `Sized`
  --> $DIR/duplicate-relaxed-bounds.rs:19:26
   |
LL | fn not_dupes<T: ?Sized + ?Iterator>() {}
   |                          ^^^^^^^^^

error[E0203]: duplicate relaxed `Sized` bounds
  --> $DIR/duplicate-relaxed-bounds.rs:10:16
   |
LL |     type Type: ?Sized + ?Sized;
   |                ^^^^^^   ^^^^^^

error[E0203]: duplicate relaxed `Sized` bounds
  --> $DIR/duplicate-relaxed-bounds.rs:10:16
   |
LL |     type Type: ?Sized + ?Sized;
   |                ^^^^^^   ^^^^^^
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0203`.