blob: ccef8681dd6018a928af5afbc0e382f9be3ec1df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
The `Sized` trait was implemented explicitly.
Erroneous code example:
```compile_fail,E0322
struct Foo;
impl Sized for Foo {} // error!
```
The `Sized` trait is a special trait built-in to the compiler for types with a
constant size known at compile-time. This trait is automatically implemented
for types as needed by the compiler, and it is currently disallowed to
explicitly implement it for a type.
|