We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b2434e commit 26b1d7cCopy full SHA for 26b1d7c
tests/ui/use_self.fixed
@@ -336,3 +336,17 @@ mod issue4305 {
336
}
337
338
339
+
340
+mod issue2843 {
341
+ trait Foo {
342
+ type Bar;
343
+ }
344
345
+ impl Foo for usize {
346
+ type Bar = u8;
347
348
349
+ impl<T: Foo> Foo for Option<T> {
350
+ type Bar = Option<T::Bar>;
351
352
+}
tests/ui/use_self.rs
0 commit comments