rustc/tests/run-make/crate-loading-crate-depends-on-itself/foo-current.rs
2025-01-11 15:57:26 +01:00

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>();
}