File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
compiler/rustc_middle/src/hir/map
src/test/ui/impl-trait/issues Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -697,6 +697,7 @@ impl<'hir> Map<'hir> {
697
697
| Node :: ForeignItem ( ForeignItem { kind : ForeignItemKind :: Fn ( ..) , .. } )
698
698
| Node :: TraitItem ( TraitItem { kind : TraitItemKind :: Fn ( ..) , .. } )
699
699
| Node :: ImplItem ( ImplItem { kind : ImplItemKind :: Fn ( ..) , .. } )
700
+ | Node :: AnonConst ( ..)
700
701
| Node :: Block ( _) = node
701
702
{
702
703
return Some ( hir_id) ;
Original file line number Diff line number Diff line change 5
5
//~^ WARN the feature `impl_trait_in_bindings` is incomplete
6
6
7
7
type F = impl core:: future:: Future < Output = u8 > ;
8
+ //~^ ERROR type mismatch
8
9
9
10
struct Bug {
10
11
V1 : [ ( ) ; {
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ LL | type F = impl core::future::Future<Output = u8>;
14
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `u8`
15
15
16
16
error: `async` blocks are not allowed in constants
17
- --> $DIR/issue-78722.rs:14 :20
17
+ --> $DIR/issue-78722.rs:15 :20
18
18
|
19
19
LL | let f: F = async { 1 };
20
20
| ^^^^^^^^^^^
21
21
22
22
error[E0493]: destructors cannot be evaluated at compile-time
23
- --> $DIR/issue-78722.rs:14 :13
23
+ --> $DIR/issue-78722.rs:15 :13
24
24
|
25
25
LL | let f: F = async { 1 };
26
26
| ^ constants cannot evaluate destructors
You can’t perform that action at this time.
0 commit comments