@@ -5,19 +5,19 @@ 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:9 :38
8
+ --> $DIR/bound-modifiers.rs:7 :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:14 :38
14
+ --> $DIR/bound-modifiers.rs:12 :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:19 :37
20
+ --> $DIR/bound-modifiers.rs:17 :37
21
21
|
22
22
LL | fn binder() -> impl Sized + for<'a> use<> {}
23
23
| ^^^ expected identifier, found keyword
@@ -29,25 +29,25 @@ 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:9 :38
32
+ --> $DIR/bound-modifiers.rs:7 :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:14 :38
38
+ --> $DIR/bound-modifiers.rs:12 :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:19 :37
44
+ --> $DIR/bound-modifiers.rs:17 :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:9 :32
50
+ --> $DIR/bound-modifiers.rs:7 :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:14 :32
61
+ --> $DIR/bound-modifiers.rs:12 :32
62
62
|
63
63
LL | fn constness() -> impl Sized + const use<> {}
64
64
| ^^^^^
@@ -67,21 +67,7 @@ LL | fn constness() -> impl Sized + const use<> {}
67
67
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
68
68
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
69
69
70
- warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
71
- --> $DIR/bound-modifiers.rs:3:31
72
- |
73
- LL | fn polarity() -> impl Sized + ?use<> {}
74
- | ^^^^^^
75
-
76
- warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
77
- --> $DIR/bound-modifiers.rs:3:31
78
- |
79
- LL | fn polarity() -> impl Sized + ?use<> {}
80
- | ^^^^^^
81
- |
82
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
83
-
84
- error: aborting due to 10 previous errors; 2 warnings emitted
70
+ error: aborting due to 10 previous errors
85
71
86
72
Some errors have detailed explanations: E0405, E0658.
87
73
For more information about an error, try `rustc --explain E0405`.
0 commit comments