mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-07 12:00:42 +00:00
17 lines
226 B
Plaintext
17 lines
226 B
Plaintext
// 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);
|
|
}
|