mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 03:27:44 +00:00
10 lines
285 B
Rust
10 lines
285 B
Rust
![]() |
//! This test checks that we taint typeck results when there are
|
||
|
//! error lifetimes, even though typeck doesn't actually care about lifetimes.
|
||
|
|
||
|
struct Slice(&'reborrow [&'static [u8]]);
|
||
|
//~^ ERROR undeclared lifetime
|
||
|
|
||
|
static MAP: Slice = Slice(&[b"" as &'static [u8]]);
|
||
|
|
||
|
fn main() {}
|