blob: 740a05be06ba6368c158b7f0af305f1f07ed6182 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
error[E0277]: the trait bound `(): Trait` is not satisfied
--> $DIR/double-error-for-unimplemented-trait.rs:13:15
|
LL | needs_const(&());
| ----------- ^^^ the trait `Trait` is not implemented for `()`
| |
| required by a bound introduced by this call
|
help: this trait has no implementations, consider adding one
--> $DIR/double-error-for-unimplemented-trait.rs:6:1
|
LL | trait Trait {
| ^^^^^^^^^^^
note: required by a bound in `needs_const`
--> $DIR/double-error-for-unimplemented-trait.rs:10:25
|
LL | const fn needs_const<T: [const] Trait>(_: &T) {}
| ^^^^^^^^^^^^^ required by this bound in `needs_const`
error[E0277]: the trait bound `(): Trait` is not satisfied
--> $DIR/double-error-for-unimplemented-trait.rs:18:15
|
LL | needs_const(&());
| ----------- ^^^ the trait `Trait` is not implemented for `()`
| |
| required by a bound introduced by this call
|
help: this trait has no implementations, consider adding one
--> $DIR/double-error-for-unimplemented-trait.rs:6:1
|
LL | trait Trait {
| ^^^^^^^^^^^
note: required by a bound in `needs_const`
--> $DIR/double-error-for-unimplemented-trait.rs:10:25
|
LL | const fn needs_const<T: [const] Trait>(_: &T) {}
| ^^^^^^^^^^^^^ required by this bound in `needs_const`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.
|