os-rust/tests/ui/resolve/issue-5035.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
319 B
Rust
Raw Permalink Normal View History

trait I {}
2019-05-28 14:46:13 -04:00
type K = dyn I;
impl K for isize {} //~ ERROR expected trait, found type alias `K`
2016-08-22 13:57:10 +08:00
use ImportError; //~ ERROR unresolved import `ImportError` [E0432]
//~^ no `ImportError` in the root
impl ImportError for () {} // check that this is not an additional error (cf. issue #35142)
fn main() {}