mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
17 lines
227 B
Rust
17 lines
227 B
Rust
//@ run-rustfix
|
|
#![allow(non_snake_case)]
|
|
mod A {
|
|
pub trait Trait {}
|
|
impl Trait for i32 {}
|
|
}
|
|
|
|
mod B {
|
|
use A::Trait;
|
|
|
|
pub struct A<H: Trait>(pub H); //~ ERROR cannot find trait
|
|
}
|
|
|
|
fn main() {
|
|
let _ = B::A(42);
|
|
}
|