]> git.lizzy.rs Git - rust.git/blob - tests/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / marker_trait_attr / overlap-marker-trait-with-underscore-lifetime.rs
1 #![feature(marker_trait_attr)]
2
3 #[marker]
4 trait Marker {}
5
6 impl Marker for &'_ () {} //~ ERROR type annotations needed
7 impl Marker for &'_ () {} //~ ERROR type annotations needed
8
9 fn main() {}