File tree Expand file tree Collapse file tree 2 files changed +5
-53
lines changed Expand file tree Collapse file tree 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.)
18071807[rfc401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
18081808"## ,
18091809
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-
18621810}
18631811
18641812
18651813register_diagnostics ! {
18661814// E0006 // merged with E0005
1815+ // E0101, // replaced with E0282
1816+ // E0102, // replaced with E0282
18671817// E0134,
18681818// E0135,
18691819 E0278 , // requirement is not satisfied
Original file line number Diff line number Diff line change @@ -4102,6 +4102,8 @@ register_diagnostics! {
41024102// E0068,
41034103// E0085,
41044104// E0086,
4105+ // E0103,
4106+ // E0104,
41054107// E0123,
41064108// E0127,
41074109// E0129,
@@ -4118,7 +4120,7 @@ register_diagnostics! {
41184120// E0188, // can not cast an immutable reference to a mutable pointer
41194121// E0189, // deprecated: can only cast a boxed pointer to a boxed object
41204122// 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
41224124 E0203 , // type parameter has more than one relaxed default bound,
41234125 // and only one is supported
41244126 E0208 ,
You can’t perform that action at this time.
0 commit comments