rust/tests/run-make/crate-loading/multiple-dep-versions-1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
233 B
Rust
Raw Normal View History

2024-08-06 02:14:08 +00:00
#![crate_name = "dependency"]
#![crate_type = "rlib"]
pub struct Type(pub i32);
pub trait Trait {
fn foo(&self);
fn bar();
}
impl Trait for Type {
fn foo(&self) {}
fn bar() {}
}
2024-08-06 02:14:08 +00:00
pub fn do_something<X: Trait>(_: X) {}