mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 10:03:37 +00:00
11 lines
222 B
Rust
11 lines
222 B
Rust
|
#![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() {}
|