mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 20:46:49 +00:00
11 lines
162 B
Rust
11 lines
162 B
Rust
#![allow(dead_code)]
|
|
|
|
use std::fmt::Debug;
|
|
|
|
fn bar<'a>(x: &'a u32) -> &'static dyn Debug {
|
|
x
|
|
//~^ ERROR lifetime may not live long enough
|
|
}
|
|
|
|
fn main() {}
|