File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
branches/try/src/librustc_typeck Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: af02bccb41a2432d13686d0d5828118ea7d23bb2
4
+ refs/heads/try: 0c4faf2a0785ea00f8498289dd2a558627b5bc66
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -1721,6 +1721,12 @@ extern {
1721
1721
E0131 : r##"
1722
1722
It is not possible to define `main` with type parameters, or even with function
1723
1723
parameters. When `main` is present, it must take no arguments and return `()`.
1724
+ Erroneous code example:
1725
+
1726
+ ```
1727
+ fn main<T>() { // error: main function is not allowed to have type parameters
1728
+ }
1729
+ ```
1724
1730
"## ,
1725
1731
1726
1732
E0132 : r##"
You can’t perform that action at this time.
0 commit comments