@@ -5,46 +5,22 @@ LL | fn rpit() -> impl ?const T { S }
5
5
| ^^^^^^^^
6
6
7
7
error: `?const` is not permitted in `impl Trait`
8
- --> $DIR/in-impl-trait.rs:13 :17
8
+ --> $DIR/in-impl-trait.rs:12 :17
9
9
|
10
10
LL | fn apit(_: impl ?const T) {}
11
11
| ^^^^^^^^
12
12
13
13
error: `?const` is not permitted in `impl Trait`
14
- --> $DIR/in-impl-trait.rs:17 :50
14
+ --> $DIR/in-impl-trait.rs:15 :50
15
15
|
16
16
LL | fn rpit_assoc_bound() -> impl IntoIterator<Item: ?const T> { Some(S) }
17
17
| ^^^^^^^^
18
18
19
19
error: `?const` is not permitted in `impl Trait`
20
- --> $DIR/in-impl-trait.rs:21 :48
20
+ --> $DIR/in-impl-trait.rs:18 :48
21
21
|
22
22
LL | fn apit_assoc_bound(_: impl IntoIterator<Item: ?const T>) {}
23
23
| ^^^^^^^^
24
24
25
- error: `?const` on trait bounds is not yet implemented
26
- --> $DIR/in-impl-trait.rs:9:19
27
- |
28
- LL | fn rpit() -> impl ?const T { S }
29
- | ^^^^^^^^
30
-
31
- error: `?const` on trait bounds is not yet implemented
32
- --> $DIR/in-impl-trait.rs:13:17
33
- |
34
- LL | fn apit(_: impl ?const T) {}
35
- | ^^^^^^^^
36
-
37
- error: `?const` on trait bounds is not yet implemented
38
- --> $DIR/in-impl-trait.rs:17:50
39
- |
40
- LL | fn rpit_assoc_bound() -> impl IntoIterator<Item: ?const T> { Some(S) }
41
- | ^^^^^^^^
42
-
43
- error: `?const` on trait bounds is not yet implemented
44
- --> $DIR/in-impl-trait.rs:21:48
45
- |
46
- LL | fn apit_assoc_bound(_: impl IntoIterator<Item: ?const T>) {}
47
- | ^^^^^^^^
48
-
49
- error: aborting due to 8 previous errors
25
+ error: aborting due to 4 previous errors
50
26
0 commit comments