about summary refs log tree commit diff
path: root/tests/run-make/crate-loading/dependency-1.rs
blob: bfeabccf5c146dd3f809622751032881d8518d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![crate_name = "dependency"]
#![crate_type = "rlib"]
pub struct Type(pub i32);
pub trait Trait {
    fn foo(&self);
    fn bar();
}
pub trait Trait2 {}
impl Trait for Type {
    fn foo(&self) {}
    fn bar() {}
}
pub fn do_something<X: Trait>(_: X) {}
pub fn do_something_type(_: Type) {}
pub fn do_something_trait(_: Box<dyn Trait2>) {}