Update generic.md

pull/196/head
Jesse 3 years ago committed by GitHub
parent f91a582d46
commit 99fab01178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -356,7 +356,7 @@ fn main() {
```rust
#![allow(incomplete_features)]
#![feature(generic_const_exprs)]
(这段代码编译不通过,第13行报错这里泛型的声明好像没有体现出const
(这段代码编译不通过,Assert处报错这里泛型的声明好像没有体现出const
fn something<T>(val: T)
where
Assert<{ core::mem::size_of::<T>() < 768 }>: IsTrue,

Loading…
Cancel
Save