Commit 59f1a56
authored
Rollup merge of #58607 - gurgalex:fail_E0505_for_2018_edition, r=matthewjasper
Fixes #58586: Make E0505 erronous example fail for the 2018 edition
The original example worked for 2015, but not the 2018 edition of Rust.
Borrowing the moved value after ownership is transferred seems required for 2018.
[this](rust-lang:f66e469...gurgalex:b2a02c8#diff-4ca866aea4a6efecd732f1975faaad88R1564) line though is correct for 2018, but not for the 2015 edition.
Fix #585861 file changed
+22
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
| 1548 | + | |
| 1549 | + | |
1548 | 1550 | | |
1549 | 1551 | | |
1550 | 1552 | | |
1551 | 1553 | | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
1556 | 1557 | | |
1557 | 1558 | | |
1558 | 1559 | | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
1562 | 1564 | | |
1563 | 1565 | | |
1564 | 1566 | | |
| |||
1569 | 1571 | | |
1570 | 1572 | | |
1571 | 1573 | | |
| 1574 | + | |
| 1575 | + | |
1572 | 1576 | | |
1573 | 1577 | | |
1574 | 1578 | | |
1575 | 1579 | | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
1580 | 1583 | | |
1581 | 1584 | | |
1582 | 1585 | | |
| |||
1585 | 1588 | | |
1586 | 1589 | | |
1587 | 1590 | | |
| 1591 | + | |
| 1592 | + | |
1588 | 1593 | | |
1589 | 1594 | | |
1590 | 1595 | | |
1591 | 1596 | | |
1592 | 1597 | | |
1593 | 1598 | | |
| 1599 | + | |
1594 | 1600 | | |
1595 | 1601 | | |
1596 | 1602 | | |
| |||
1602 | 1608 | | |
1603 | 1609 | | |
1604 | 1610 | | |
| 1611 | + | |
| 1612 | + | |
1605 | 1613 | | |
1606 | 1614 | | |
1607 | 1615 | | |
1608 | 1616 | | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
1612 | | - | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
1613 | 1620 | | |
1614 | 1621 | | |
1615 | 1622 | | |
| |||
0 commit comments