@@ -5,19 +5,19 @@ LL | fn polarity() -> impl Sized + ?use<> {}
55 | ^^^ expected identifier, found keyword
66
77error: expected identifier, found keyword `use`
8- --> $DIR/bound-modifiers.rs:9 :38
8+ --> $DIR/bound-modifiers.rs:7 :38
99 |
1010LL | fn asyncness() -> impl Sized + async use<> {}
1111 | ^^^ expected identifier, found keyword
1212
1313error: expected identifier, found keyword `use`
14- --> $DIR/bound-modifiers.rs:14 :38
14+ --> $DIR/bound-modifiers.rs:12 :38
1515 |
1616LL | fn constness() -> impl Sized + const use<> {}
1717 | ^^^ expected identifier, found keyword
1818
1919error: expected identifier, found keyword `use`
20- --> $DIR/bound-modifiers.rs:19 :37
20+ --> $DIR/bound-modifiers.rs:17 :37
2121 |
2222LL | fn binder() -> impl Sized + for<'a> use<> {}
2323 | ^^^ expected identifier, found keyword
@@ -29,25 +29,25 @@ LL | fn polarity() -> impl Sized + ?use<> {}
2929 | ^^^ not found in this scope
3030
3131error[E0405]: cannot find trait `r#use` in this scope
32- --> $DIR/bound-modifiers.rs:9 :38
32+ --> $DIR/bound-modifiers.rs:7 :38
3333 |
3434LL | fn asyncness() -> impl Sized + async use<> {}
3535 | ^^^ not found in this scope
3636
3737error[E0405]: cannot find trait `r#use` in this scope
38- --> $DIR/bound-modifiers.rs:14 :38
38+ --> $DIR/bound-modifiers.rs:12 :38
3939 |
4040LL | fn constness() -> impl Sized + const use<> {}
4141 | ^^^ not found in this scope
4242
4343error[E0405]: cannot find trait `r#use` in this scope
44- --> $DIR/bound-modifiers.rs:19 :37
44+ --> $DIR/bound-modifiers.rs:17 :37
4545 |
4646LL | fn binder() -> impl Sized + for<'a> use<> {}
4747 | ^^^ not found in this scope
4848
4949error[E0658]: async closures are unstable
50- --> $DIR/bound-modifiers.rs:9 :32
50+ --> $DIR/bound-modifiers.rs:7 :32
5151 |
5252LL | fn asyncness() -> impl Sized + async use<> {}
5353 | ^^^^^
@@ -58,7 +58,7 @@ LL | fn asyncness() -> impl Sized + async use<> {}
5858 = help: to use an async block, remove the `||`: `async {`
5959
6060error[E0658]: const trait impls are experimental
61- --> $DIR/bound-modifiers.rs:14 :32
61+ --> $DIR/bound-modifiers.rs:12 :32
6262 |
6363LL | fn constness() -> impl Sized + const use<> {}
6464 | ^^^^^
@@ -67,21 +67,7 @@ LL | fn constness() -> impl Sized + const use<> {}
6767 = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
6868 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
6969
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
8571
8672Some errors have detailed explanations: E0405, E0658.
8773For more information about an error, try `rustc --explain E0405`.
0 commit comments