]>
git.proxmox.com Git - rustc.git/blob - tests/ui/derived-errors/issue-30580.rs
1 // Test that we do not see uninformative region-related errors
2 // when we get some basic type-checking failure. See #30580.
4 pub struct Foo { a: u32 }
5 pub struct Pass
<'a
, 'tcx
: 'a
>(&'a
mut &'
a (), &'a
&'
tcx ());
7 impl<'a
, 'tcx
> Pass
<'a
, 'tcx
>
9 pub fn tcx(&self) -> &'a
&'
tcx () { self.1 }
10 fn lol(&mut self, b
: &Foo
)
12 b
.c
; //~ ERROR no field `c` on type `&Foo`