blob: 02cc3f01af931c3393b25d4f930a27e8ba7ed6aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// https://github.com/rust-lang/rust/pull/113242#issuecomment-1616034904
// similar with `import-after-macro-expand-2.rs`
mod a {
pub trait P {}
}
pub use a::*;
mod c {
use crate::*;
pub struct S(Vec<P>);
//~^ ERROR the size for values of type
//~| WARNING trait objects without an explicit
//~| WARNING this is accepted in the current edition
//~| WARNING trait objects without an explicit
//~| WARNING this is accepted in the current edition
//~| WARNING trait objects without an explicit
//~| WARNING this is accepted in the current edition
// FIXME: should works, but doesn't currently refer
// to it due to backward compatibility
}
#[derive(Clone)]
pub enum P {
A
}
fn main() {}
|