about summary refs log tree commit diff
path: root/tests/ui/resolve/issue-5035.rs
blob: a9e2509dde999a5337ff725cd279917e83d4d7db (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ dont-require-annotations: NOTE

trait I {}
type K = dyn I;
impl K for isize {} //~ ERROR expected trait, found type alias `K`

use crate::ImportError; //~ ERROR unresolved import `crate::ImportError` [E0432]
                 //~^ NOTE no `ImportError` in the root
impl ImportError for () {} // check that this is not an additional error (cf. issue #35142)

fn main() {}