rust/tests/ui/marker_trait_attr/region-overlap.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
215 B
Rust
Raw Normal View History

2021-08-18 09:27:25 -05:00
#![feature(marker_trait_attr)]
#[marker]
trait A {}
impl<'a> A for (&'static (), &'a ()) {} //~ ERROR type annotations needed
impl<'a> A for (&'a (), &'static ()) {} //~ ERROR type annotations needed
fn main() {}