File tree 2 files changed +5
-53
lines changed
2 files changed +5
-53
lines changed Original file line number Diff line number Diff line change @@ -1807,63 +1807,13 @@ makes a difference in practice.)
1807
1807
[rfc401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
1808
1808
"## ,
1809
1809
1810
- /*
1811
-
1812
- E0101: r##"
1813
- #### Note: this error code is no longer emitted by the compiler.
1814
-
1815
- You hit this error because the compiler lacks the information to
1816
- determine a type for this expression. Erroneous code example:
1817
-
1818
- ```ignore
1819
- let x = |_| {}; // error: cannot determine a type for this expression
1820
- ```
1821
-
1822
- You have two possibilities to solve this situation:
1823
-
1824
- * Give an explicit definition of the expression
1825
- * Infer the expression
1826
-
1827
- Examples:
1828
-
1829
- ```
1830
- let x = |_ : u32| {}; // ok!
1831
- // or:
1832
- let x = |_| {};
1833
- x(0u32);
1834
- ```
1835
- "##,
1836
-
1837
- E0102: r##"
1838
- #### Note: this error code is no longer emitted by the compiler.
1839
-
1840
- You hit this error because the compiler lacks the information to
1841
- determine the type of this variable. Erroneous code example:
1842
-
1843
- ```ignore
1844
- // could be an array of anything
1845
- let x = []; // error: cannot determine a type for this local variable
1846
- ```
1847
-
1848
- To solve this situation, constrain the type of the variable.
1849
- Examples:
1850
-
1851
- ```
1852
- #![allow(unused_variables)]
1853
-
1854
- fn main() {
1855
- let x: [u8; 0] = [];
1856
- }
1857
- ```
1858
- "##,
1859
-
1860
- */
1861
-
1862
1810
}
1863
1811
1864
1812
1865
1813
register_diagnostics ! {
1866
1814
// E0006 // merged with E0005
1815
+ // E0101, // replaced with E0282
1816
+ // E0102, // replaced with E0282
1867
1817
// E0134,
1868
1818
// E0135,
1869
1819
E0278 , // requirement is not satisfied
Original file line number Diff line number Diff line change @@ -4102,6 +4102,8 @@ register_diagnostics! {
4102
4102
// E0068,
4103
4103
// E0085,
4104
4104
// E0086,
4105
+ // E0103,
4106
+ // E0104,
4105
4107
// E0123,
4106
4108
// E0127,
4107
4109
// E0129,
@@ -4118,7 +4120,7 @@ register_diagnostics! {
4118
4120
// E0188, // can not cast an immutable reference to a mutable pointer
4119
4121
// E0189, // deprecated: can only cast a boxed pointer to a boxed object
4120
4122
// E0190, // deprecated: can only cast a &-pointer to an &-object
4121
- E0196 , // cannot determine a type for this closure // @cengizIO: this is no longer thrown. should I DELETE THIS?
4123
+ // E0196, // cannot determine a type for this closure
4122
4124
E0203 , // type parameter has more than one relaxed default bound,
4123
4125
// and only one is supported
4124
4126
E0208 ,
You can’t perform that action at this time.
0 commit comments