2022-04-21 10:01:18 -05:00
|
|
|
#![warn(clippy::large_include_file)]
|
|
|
|
|
|
|
|
// Good
|
2024-10-30 14:41:34 -05:00
|
|
|
const GOOD_INCLUDE_BYTES: &[u8; 68] = include_bytes!("../../ui/author.rs");
|
|
|
|
const GOOD_INCLUDE_STR: &str = include_str!("../../ui/author.rs");
|
2022-04-21 10:01:18 -05:00
|
|
|
|
|
|
|
#[allow(clippy::large_include_file)]
|
|
|
|
const ALLOWED_TOO_BIG_INCLUDE_BYTES: &[u8; 654] = include_bytes!("too_big.txt");
|
|
|
|
#[allow(clippy::large_include_file)]
|
|
|
|
const ALLOWED_TOO_BIG_INCLUDE_STR: &str = include_str!("too_big.txt");
|
|
|
|
|
|
|
|
// Bad
|
|
|
|
const TOO_BIG_INCLUDE_BYTES: &[u8; 654] = include_bytes!("too_big.txt");
|
2024-10-30 14:41:34 -05:00
|
|
|
//~^ large_include_file
|
2022-04-21 10:01:18 -05:00
|
|
|
const TOO_BIG_INCLUDE_STR: &str = include_str!("too_big.txt");
|
2024-10-30 14:41:34 -05:00
|
|
|
//~^ large_include_file
|
2022-04-21 10:01:18 -05:00
|
|
|
|
2024-10-30 14:41:34 -05:00
|
|
|
#[doc = include_str!("too_big.txt")] //~ large_include_file
|
2022-04-21 10:01:18 -05:00
|
|
|
fn main() {}
|