2,424 matches across 25 files for func main lang:Markdown lang:Markdown
snippet_mode: summary · sorted by relevance
compiler/rustc_error_codes/src/error_codes/E0131.md MARKDOWN 3 matches · showing 1 view file →
1The `main` function was defined with generic parameters.
+ 2 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0646.md MARKDOWN 2 matches · showing 1 view file →
1It is not possible to define `main` with a where clause.
+ 1 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0601.md MARKDOWN 3 matches · showing 1 view file →
1No `main` function was found in a binary crate.
+ 2 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0136.md MARKDOWN 4 matches · showing 1 view file →
3More than one `main` function was found.
+ 3 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0580.md MARKDOWN 4 matches · showing 1 view file →
1The `main` function was incorrectly declared.
+ 3 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0137.md MARKDOWN 9 matches · showing 1 view file →
3More than one function was declared with the `#[main]` attribute.
+ 8 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0572.md MARKDOWN 5 matches · showing 1 view file →
1A return statement was found outside of a function body.
+ 4 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0712.md MARKDOWN 4 matches · showing 1 view file →
1A borrow of a thread-local variable was made inside a function which outlived
+ 3 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0799.md MARKDOWN 4 matches · showing 1 view file →
7fn bad1() -> impl Sized + use<main> {}
+ 3 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0093.md MARKDOWN 5 matches · showing 1 view file →
1An unknown intrinsic function was declared.
+ 4 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0752.md MARKDOWN 3 matches · showing 1 view file →
6async fn main() -> Result<(), ()> { // error!
+ 2 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0562.md MARKDOWN 5 matches · showing 1 view file →
1`impl Trait` is only allowed as a function return and argument type.
+ 4 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0585.md MARKDOWN 3 matches · showing 1 view file →
6fn main() {
+ 2 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0089.md MARKDOWN 4 matches · showing 1 view file →
3Too few type arguments were supplied for a function. For example:
+ 3 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0622.md MARKDOWN 6 matches · showing 1 view file →
3An intrinsic was declared without being a function.
+ 5 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0755.md MARKDOWN 4 matches · showing 1 view file →
3The `ffi_pure` attribute was used on a non-foreign function.
+ 3 more matches in this file
compiler/rustc_driver_impl/README.md MARKDOWN 2 matches · showing 1 view file →
1The `driver` crate is effectively the "main" function for the rust
+ 1 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0756.md MARKDOWN 4 matches · showing 1 view file →
3The `ffi_const` attribute was used on something other than a foreign function
+ 3 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0775.md MARKDOWN 3 matches · showing 1 view file →
11pub extern "cmse-nonsecure-entry" fn entry_function() {}
+ 2 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0087.md MARKDOWN 2 matches · showing 1 view file →
3Too many type arguments were supplied for a function. For example:
+ 1 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0211.md MARKDOWN 6 matches · showing 1 view file →
3You used a function or type which doesn't fit the requirements for where it was
+ 5 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0133.md MARKDOWN 8 matches · showing 1 view file →
8fn main() {
+ 7 more matches in this file
src/doc/unstable-book/src/language-features/unboxed-closures.md MARKDOWN 3 matches · showing 1 view file →
11The `unboxed_closures` feature allows you to write functions using the `"rust-call"` ABI,
+ 2 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0659.md MARKDOWN 4 matches · showing 1 view file →
19fn main() {
+ 3 more matches in this file
compiler/rustc_error_codes/src/error_codes/E0764.md MARKDOWN 5 matches · showing 1 view file →
6fn main() {
+ 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.