mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +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() {}
|