]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/new_without_default.rs
Ignore associated items in trait *implementations* when considering type complexity
[rust.git] / tests / ui / new_without_default.rs
index 58094646b505cad518d16b3a65665336e47b9856..4b2e7444dcf63251932ba94ee3c4ace4e59be4dc 100644 (file)
@@ -173,4 +173,16 @@ pub fn new() -> Self {
     }
 }
 
+pub mod issue7220 {
+    pub struct Foo<T> {
+        _bar: *mut T,
+    }
+
+    impl<T> Foo<T> {
+        pub fn new() -> Self {
+            todo!()
+        }
+    }
+}
+
 fn main() {}