We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eaaa2da + 94e8a22 commit fc14c88Copy full SHA for fc14c88
crates/ide-diagnostics/src/handlers/unresolved_assoc_item.rs
@@ -46,6 +46,27 @@ fn main() {
46
let _ = S::X;
47
//^^^^ error: no such associated item
48
}
49
+"#,
50
+ );
51
+ }
52
+
53
+ #[test]
54
+ fn dyn_super_trait_assoc_type() {
55
+ check_diagnostics(
56
+ r#"
57
+//- minicore: future, send
58
59
+use core::{future::Future, marker::Send, pin::Pin};
60
61
+trait FusedFuture: Future {
62
+ fn is_terminated(&self) -> bool;
63
+}
64
65
+struct Box<T: ?Sized>(*const T);
66
67
+fn main() {
68
+ let _fut: Pin<Box<dyn FusedFuture<Output = ()> + Send>> = loop {};
69
70
"#,
71
);
72
0 commit comments