]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/associated-type-lifetime-ice.rs
2 // rustc-env:RUST_BACKTRACE=0
3 // normalize-stderr-test "note: .*\n\n" -> ""
4 // normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
6 // compile-flags: --crate-type=rlib
8 // Regression test for https://github.com/rust-lang/rust/issues/78450
10 #![feature(min_type_alias_impl_trait)]
13 pub trait AssociatedImpl
{
16 fn f() -> Self::ImplTrait
;
26 impl<'a
, T
: Associated
<A
= &'
a ()>> AssociatedImpl
for S
<T
> {
27 type ImplTrait
= impl core
::fmt
::Debug
;
29 fn f() -> Self::ImplTrait
{
30 //~^ ERROR unexpected concrete region in borrowck: ReEarlyBound(0, 'a)