]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0646.md
Rollup merge of #62514 - stephaneyfx:box-ffi, r=nikomatsakis
[rust.git] / src / librustc_error_codes / error_codes / E0646.md
1 It is not possible to define `main` with a where clause.
2 Erroneous code example:
3
4 ```compile_fail,E0646
5 fn main() where i32: Copy { // error: main function is not allowed to have
6                             // a where clause
7 }
8 ```