blob: 2a25d60acff7bf9556cdf6d26a3a50910f4c5667 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* This crate declares an item as both `prelude::*` and `m::Tr`.
* The compiler should always suggest `m::Tr`. */
pub struct S;
pub mod prelude {
pub use crate::m::Tr as _;
}
pub mod m {
pub trait Tr { fn method(&self); }
impl Tr for crate::S { fn method(&self) {} }
}
|