summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/unnecessary_box_returns/unnecessary_box_returns.rs
blob: b44fbb5544856c528993f6f1979dd82b3b650190 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![warn(clippy::unnecessary_box_returns)]

fn f() -> Box<[u8; 64]> {
    //~^ ERROR: boxed return of the sized type `[u8; 64]`
    todo!()
}
fn f2() -> Box<[u8; 65]> {
    todo!()
}

fn main() {}