mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 08:16:56 +00:00
20 lines
584 B
Plaintext
20 lines
584 B
Plaintext
error[E0412]: cannot find type `b` in this scope
|
|
--> $DIR/meaningless-bound.rs:6:5
|
|
|
|
|
LL | b: Sized,
|
|
| ^ not found in this scope
|
|
|
|
error[E0411]: cannot find type `Self` in this scope
|
|
--> $DIR/meaningless-bound.rs:14:5
|
|
|
|
|
LL | fn f() -> &'static str
|
|
| - `Self` not allowed in a function
|
|
LL | where
|
|
LL | Self: Sized,
|
|
| ^^^^ `Self` is only available in impls, traits, and type definitions
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0411, E0412.
|
|
For more information about an error, try `rustc --explain E0411`.
|