rust/tests/ui/coherence/impl[t]-foreign[foreign[t]_local]-for-foreign.rs
2023-01-11 09:32:08 +00:00

13 lines
217 B
Rust

// check-pass
// compile-flags:--crate-name=test
// aux-build:coherence_lib.rs
extern crate coherence_lib as lib;
use lib::*;
use std::rc::Rc;
struct Local;
impl<T> Remote2<Rc<T>, Local> for usize { }
fn main() {}