mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 15:13:48 +00:00
12 lines
228 B
Rust
12 lines
228 B
Rust
// check-fail
|
|
|
|
struct DataWrapper<'a> {
|
|
data: &'a [u8; Self::SIZE], //~ ERROR generic `Self` types are currently not permitted in anonymous constants
|
|
}
|
|
|
|
impl DataWrapper<'_> {
|
|
const SIZE: usize = 14;
|
|
}
|
|
|
|
pub fn main() {}
|