blob: e6a63ef221c6ab7e84c041644f79191a4cb11167 (
plain)
1
2
3
4
5
6
7
8
9
|
//! 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() {}
|