I presume this is fallout of #15537.
a.rs:
struct A;
impl A {
fn a(&self) {
include!("b.rs");
}
}
b.rs:
This used to work (rust-http depends on it with its codegen approach). Now:
b.rs:2:5: 2:9 error: `self` is not available in a static method. Maybe a `self` argument is missing?
b.rs:2 self;
^~~~
note: in expansion of include!
a.rs:4:9: 4:26 note: expansion site
error: aborting due to previous error