6 matches across 1 files for func main lang:Markdown lang:Markdown path:compiler/rustc_error_codes/src/error_codes/E0622.md
snippet_mode: auto · sorted by relevance
compiler/rustc_error_codes/src/error_codes/E0622.md MARKDOWN 6 matches · showing 5 view file →
1#### Note: this error code is no longer emitted by the compiler.
2
3An intrinsic was declared without being a function.
4
5Erroneous code example:
· · ·
12 #[rustc_intrinsic]
13 pub static atomic_singlethreadfence_seqcst: unsafe fn();
14 // error: intrinsic must be a function
15}
16
· · ·
17fn main() { unsafe { atomic_singlethreadfence_seqcst(); } }
18```
19
· · ·
20An intrinsic is a function available for use in a given programming language
21whose implementation is handled specially by the compiler. In order to fix this
22error, just declare a function. Example:
· · ·
22error, just declare a function. Example:
23
24```ignore (no longer emitted)
+ 1 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.