The main function was defined with generic parameters.
Erroneous code example:
fn main<T>() { // error: main function is not allowed to have generic parameters
} It is not possible to define the main function with generic parameters. It must not take any arguments.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0131.html