summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-5035.rs
blob: 49fa312f9d257f1f8ba74c0fa1031e7322ba7cd1 (plain)
1
2
3
4
5
6
7
8
9
trait I {}
type K = dyn I;
impl K for isize {} //~ ERROR expected trait, found type alias `K`

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() {}