File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -1797,6 +1797,31 @@ let _: <u8 as Age>::Empire; // ok!
1797
1797
```
1798
1798
"## ,
1799
1799
1800
+ E0576 : r##"
1801
+ An associated item wasn't found in the given type.
1802
+
1803
+ Erroneous code example:
1804
+
1805
+ ```compile_fail,E0576
1806
+ trait Hello {
1807
+ type Who;
1808
+
1809
+ fn hello() -> <Self as Hello>::You; // error!
1810
+ }
1811
+ ```
1812
+
1813
+ In this example, we tried to use the non-existent associated type `You` of the
1814
+ `Hello` trait. To fix this error, use an existing associated type:
1815
+
1816
+ ```
1817
+ trait Hello {
1818
+ type Who;
1819
+
1820
+ fn hello() -> <Self as Hello>::Who; // ok!
1821
+ }
1822
+ ```
1823
+ "## ,
1824
+
1800
1825
E0603 : r##"
1801
1826
A private item was used outside its scope.
1802
1827
@@ -1924,7 +1949,6 @@ struct Foo<X = Box<Self>> {
1924
1949
// E0427, merged into 530
1925
1950
// E0467, removed
1926
1951
// E0470, removed
1927
- E0576 ,
1928
1952
E0577 ,
1929
1953
E0578 ,
1930
1954
}
You can’t perform that action at this time.
0 commit comments