1
1
error: expected identifier, found keyword `use`
2
- --> $DIR/bound-modifiers.rs:5 :32
2
+ --> $DIR/bound-modifiers.rs:3 :32
3
3
|
4
4
LL | fn polarity() -> impl Sized + ?use<> {}
5
5
| ^^^ expected identifier, found keyword
6
6
7
7
error: expected identifier, found keyword `use`
8
- --> $DIR/bound-modifiers.rs:11 :38
8
+ --> $DIR/bound-modifiers.rs:9 :38
9
9
|
10
10
LL | fn asyncness() -> impl Sized + async use<> {}
11
11
| ^^^ expected identifier, found keyword
12
12
13
13
error: expected identifier, found keyword `use`
14
- --> $DIR/bound-modifiers.rs:16 :38
14
+ --> $DIR/bound-modifiers.rs:14 :38
15
15
|
16
16
LL | fn constness() -> impl Sized + const use<> {}
17
17
| ^^^ expected identifier, found keyword
18
18
19
19
error: expected identifier, found keyword `use`
20
- --> $DIR/bound-modifiers.rs:21 :37
20
+ --> $DIR/bound-modifiers.rs:19 :37
21
21
|
22
22
LL | fn binder() -> impl Sized + for<'a> use<> {}
23
23
| ^^^ expected identifier, found keyword
24
24
25
25
error[E0405]: cannot find trait `r#use` in this scope
26
- --> $DIR/bound-modifiers.rs:5 :32
26
+ --> $DIR/bound-modifiers.rs:3 :32
27
27
|
28
28
LL | fn polarity() -> impl Sized + ?use<> {}
29
29
| ^^^ not found in this scope
30
30
31
31
error[E0405]: cannot find trait `r#use` in this scope
32
- --> $DIR/bound-modifiers.rs:11 :38
32
+ --> $DIR/bound-modifiers.rs:9 :38
33
33
|
34
34
LL | fn asyncness() -> impl Sized + async use<> {}
35
35
| ^^^ not found in this scope
36
36
37
37
error[E0405]: cannot find trait `r#use` in this scope
38
- --> $DIR/bound-modifiers.rs:16 :38
38
+ --> $DIR/bound-modifiers.rs:14 :38
39
39
|
40
40
LL | fn constness() -> impl Sized + const use<> {}
41
41
| ^^^ not found in this scope
42
42
43
43
error[E0405]: cannot find trait `r#use` in this scope
44
- --> $DIR/bound-modifiers.rs:21 :37
44
+ --> $DIR/bound-modifiers.rs:19 :37
45
45
|
46
46
LL | fn binder() -> impl Sized + for<'a> use<> {}
47
47
| ^^^ not found in this scope
48
48
49
49
error[E0658]: async closures are unstable
50
- --> $DIR/bound-modifiers.rs:11 :32
50
+ --> $DIR/bound-modifiers.rs:9 :32
51
51
|
52
52
LL | fn asyncness() -> impl Sized + async use<> {}
53
53
| ^^^^^
@@ -58,7 +58,7 @@ LL | fn asyncness() -> impl Sized + async use<> {}
58
58
= help: to use an async block, remove the `||`: `async {`
59
59
60
60
error[E0658]: const trait impls are experimental
61
- --> $DIR/bound-modifiers.rs:16 :32
61
+ --> $DIR/bound-modifiers.rs:14 :32
62
62
|
63
63
LL | fn constness() -> impl Sized + const use<> {}
64
64
| ^^^^^
@@ -68,13 +68,13 @@ LL | fn constness() -> impl Sized + const use<> {}
68
68
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
69
69
70
70
warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
71
- --> $DIR/bound-modifiers.rs:5 :31
71
+ --> $DIR/bound-modifiers.rs:3 :31
72
72
|
73
73
LL | fn polarity() -> impl Sized + ?use<> {}
74
74
| ^^^^^^
75
75
76
76
warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
77
- --> $DIR/bound-modifiers.rs:5 :31
77
+ --> $DIR/bound-modifiers.rs:3 :31
78
78
|
79
79
LL | fn polarity() -> impl Sized + ?use<> {}
80
80
| ^^^^^^
0 commit comments