about summary refs log tree commit diff
path: root/tests/run-make/crate-loading-crate-depends-on-itself/foo-current.rs
blob: 71b27cd85bfedaec75cb27d30a645477c242495d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![crate_type = "lib"]
#![crate_name = "foo"]

extern crate foo;

pub struct Struct;
pub trait Trait {}
impl Trait for Struct {}

fn check_trait<T: Trait>() {}

fn ice() {
    check_trait::<foo::Struct>();
}