2025-04-05 19:19:56 +03:00
|
|
|
//@ dont-require-annotations: NOTE
|
|
|
|
|
|
2013-03-21 15:00:29 -07:00
|
|
|
trait I {}
|
2019-05-28 14:46:13 -04:00
|
|
|
type K = dyn I;
|
2016-12-01 01:35:25 +03:00
|
|
|
impl K for isize {} //~ ERROR expected trait, found type alias `K`
|
2016-07-31 20:11:38 +00:00
|
|
|
|
2025-06-05 08:41:49 +02:00
|
|
|
use crate::ImportError; //~ ERROR unresolved import `crate::ImportError` [E0432]
|
2025-04-05 19:19:56 +03:00
|
|
|
//~^ NOTE no `ImportError` in the root
|
2018-11-27 02:59:49 +00:00
|
|
|
impl ImportError for () {} // check that this is not an additional error (cf. issue #35142)
|
2016-07-31 20:11:38 +00:00
|
|
|
|
2013-03-21 15:00:29 -07:00
|
|
|
fn main() {}
|