mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-28 05:07:26 +00:00
```
error[E0747]: type provided when a constant was expected
--> $DIR/invalid-const-arguments.rs:10:19
|
LL | impl<N> Foo for B<N> {}
| ^
|
help: consider changing this type parameter to a const parameter
|
LL - impl<N> Foo for B<N> {}
LL + impl<const N: u8> Foo for B<N> {}
|
```
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.