rust/tests/ui/wf/wf-in-foreign-fn-decls-issue-80468.rs

18 lines
308 B
Rust
Raw Normal View History

2020-12-30 20:25:53 -06:00
// Regression test for #80468.
#![crate_type = "lib"]
pub trait Trait {}
#[repr(transparent)]
pub struct Wrapper<T: Trait>(T);
#[repr(transparent)]
pub struct Ref<'a>(&'a u8);
impl Trait for Ref {} //~ ERROR: implicit elided lifetime not allowed here
extern "C" {
2023-02-03 17:21:56 -06:00
pub fn repro(_: Wrapper<Ref>);
2020-12-30 20:25:53 -06:00
}