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> {
697697 | Node :: ForeignItem ( ForeignItem { kind : ForeignItemKind :: Fn ( ..) , .. } )
698698 | Node :: TraitItem ( TraitItem { kind : TraitItemKind :: Fn ( ..) , .. } )
699699 | Node :: ImplItem ( ImplItem { kind : ImplItemKind :: Fn ( ..) , .. } )
700+ | Node :: AnonConst ( ..)
700701 | Node :: Block ( _) = node
701702 {
702703 return Some ( hir_id) ;
Original file line number Diff line number Diff line change 55//~^ WARN the feature `impl_trait_in_bindings` is incomplete
66
77type F = impl core:: future:: Future < Output = u8 > ;
8+ //~^ ERROR type mismatch
89
910struct Bug {
1011 V1 : [ ( ) ; {
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ LL | type F = impl core::future::Future<Output = u8>;
1414 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `u8`
1515
1616error: `async` blocks are not allowed in constants
17- --> $DIR/issue-78722.rs:14 :20
17+ --> $DIR/issue-78722.rs:15 :20
1818 |
1919LL | let f: F = async { 1 };
2020 | ^^^^^^^^^^^
2121
2222error[E0493]: destructors cannot be evaluated at compile-time
23- --> $DIR/issue-78722.rs:14 :13
23+ --> $DIR/issue-78722.rs:15 :13
2424 |
2525LL | let f: F = async { 1 };
2626 | ^ constants cannot evaluate destructors
You can’t perform that action at this time.
0 commit comments