rust/tests/ui/coherence/impl[t]-foreign[foreign[t]_local]-for-foreign.rs
2024-02-16 20:02:50 +00:00

13 lines
220 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() {}