9 matches across 1 files for func main lang:Markdown path:compiler/rustc_error_codes/src/error_codes/E0137.md lang:Markdown
snippet_mode: auto · sorted by relevance
compiler/rustc_error_codes/src/error_codes/E0137.md MARKDOWN 9 matches · showing 5 view file →
1#### Note: this error code is no longer emitted by the compiler.
2
3More than one function was declared with the `#[main]` attribute.
4
5Erroneous code example:
· · ·
6
7```compile_fail
8#![feature(main)]
9
10#[main]
· · ·
10#[main]
11fn foo() {}
12
· · ·
13#[main]
14fn f() {} // error: multiple functions with a `#[main]` attribute
15```
· · ·
14fn f() {} // error: multiple functions with a `#[main]` attribute
15```
16
+ 4 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.