blob: 4c55736c0bb63208dfb5cecfdc2be2d0cb5df4c1 [file] [edit]
error: the `rustc_comptime` attribute cannot be used on trait impl blocks
--> $DIR/comptime_impl.rs:16:3
|
LL | #[rustc_comptime]
| ^^^^^^^^^^^^^^
|
= help: the `rustc_comptime` attribute can be applied to functions and inherent impl blocks
error[E0277]: the trait bound `Bar: const Foo` is not satisfied
--> $DIR/comptime_impl.rs:29:9
|
LL | Bar.foo();
| ^^^
|
help: make the `impl` of trait `Foo` `const`
|
LL | const impl Foo for Bar {
| +++++
error[E0277]: the trait bound `Bar: const Foo` is not satisfied
--> $DIR/comptime_impl.rs:31:9
|
LL | Bar.bar();
| ^^^
|
help: make the `impl` of trait `Foo` `const`
|
LL | const impl Foo for Bar {
| +++++
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0277`.