blob: 361b0cfce1345f0df972de76b22d43c9256d428c [file] [log] [blame]
//@ run-pass
#![allow(unused_variables)]
//@ aux-build:associated-types-cc-lib.rs
// Test that we are able to reference cross-crate traits that employ
// associated types.
extern crate associated_types_cc_lib as bar;
use bar::Bar;
fn foo<B:Bar>(b: B) -> <B as Bar>::T {
Bar::get(None::<B>)
}
fn main() {
println!("{}", foo(3));
}