]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/issue-98170.rs
1 pub struct MyStruct
<'a
> {
6 pub fn new
<'a
>(field
: &'a
[u32]) -> MyStruct
<'a
> {
8 //~^ ERROR lifetime may not live long enough
9 //~| ERROR lifetime may not live long enough
14 fn new(field
: &'a
[u32]) -> MyStruct
<'a
>;
17 impl<'a
> Trait
<'a
> for MyStruct
<'_
> {
18 fn new(field
: &'a
[u32]) -> MyStruct
<'a
> {
20 //~^ ERROR lifetime may not live long enough
21 //~| ERROR lifetime may not live long enough