rust-clippy/tests/ui-toml/result_large_err/result_large_err.rs

11 lines
222 B
Rust
Raw Normal View History

2023-09-24 12:56:40 +00:00
#![warn(clippy::result_large_err)]
fn f() -> Result<(), [u8; 511]> {
todo!()
}
fn f2() -> Result<(), [u8; 512]> {
//~^ ERROR: the `Err`-variant returned from this function is very large
todo!()
}
fn main() {}