File tree Expand file tree Collapse file tree 2 files changed +15
-18
lines changed
src/test/ui/type-alias-impl-trait Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 1
- // check-pass
1
+ // failure-status: 101
2
+ // rustc-env:RUST_BACKTRACE=0
3
+ // normalize-stderr-test "note: .*\n\n" -> ""
4
+ // normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
5
+
2
6
// compile-flags: --crate-type=rlib
3
7
4
8
// Regression test for https://github.com/rust-lang/rust/issues/78450
@@ -22,7 +26,7 @@ trait Associated {
22
26
impl < ' a , T : Associated < A = & ' a ( ) > > AssociatedImpl for S < T > {
23
27
type ImplTrait = impl core:: fmt:: Debug ;
24
28
25
- fn f ( ) -> Self :: ImplTrait {
29
+ fn f ( ) -> Self :: ImplTrait { //~ ERROR unexpected concrete region in borrowck: ReEarlyBound(0, 'a)
26
30
( )
27
31
}
28
32
}
Original file line number Diff line number Diff line change 1
- error[E0601]: `main` function not found in crate `associated_type_lifetime_ice`
2
- --> $DIR/associated-type-lifetime-ice.rs:1:1
1
+ error: internal compiler error: unexpected concrete region in borrowck: ReEarlyBound(0, 'a)
2
+ --> $DIR/associated-type-lifetime-ice.rs:29:5
3
3
|
4
- LL | / #![feature(type_alias_impl_trait)]
5
- LL | | #![no_std]
6
- LL | |
7
- LL | | pub trait AssociatedImpl {
8
- ... |
4
+ LL | / fn f() -> Self::ImplTrait {
5
+ LL | | ()
9
6
LL | | }
10
- LL | | }
11
- | |_^ consider adding a `main` function to `$DIR/associated-type-lifetime-ice.rs`
12
-
13
- error: language item required, but not found: `eh_personality`
14
-
15
- error: `#[panic_handler]` function required, but not found
16
-
17
- error: aborting due to 3 previous errors
7
+ | |_____^
8
+ |
9
+ = error: internal compiler error: unexpected panic
18
10
19
- For more information about this error, try `rustc --explain E0601`.
11
+ query stack during panic:
12
+ end of query stack
You can’t perform that action at this time.
0 commit comments