mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-26 03:48:46 +00:00
15 lines
208 B
Rust
15 lines
208 B
Rust
#![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>();
|
|
}
|