forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrait-where-clause-const.stderr
52 lines (47 loc) · 1.48 KB
/
trait-where-clause-const.stderr
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
42
43
44
45
46
47
48
49
50
51
52
error[E0277]: the trait bound `T: Foo` is not satisfied
--> $DIR/trait-where-clause-const.rs:22:5
|
LL | T::b();
| ^ the trait `Foo` is not implemented for `T`
|
note: required by a bound in `Foo::b`
--> $DIR/trait-where-clause-const.rs:13:1
|
LL | #[const_trait]
| ^^^^^^^^^^^^^^ required by this bound in `Foo::b`
...
LL | fn b() where Self: ~const Bar;
| - required by a bound in this associated function
error[E0308]: mismatched types
--> $DIR/trait-where-clause-const.rs:22:5
|
LL | T::b();
| ^^^^^^ expected `host`, found `true`
|
= note: expected constant `host`
found constant `true`
error[E0277]: the trait bound `T: Foo` is not satisfied
--> $DIR/trait-where-clause-const.rs:25:5
|
LL | T::c::<T>();
| ^ the trait `Foo` is not implemented for `T`
|
note: required by a bound in `Foo::c`
--> $DIR/trait-where-clause-const.rs:13:1
|
LL | #[const_trait]
| ^^^^^^^^^^^^^^ required by this bound in `Foo::c`
...
LL | fn c<T: ~const Bar>();
| - required by a bound in this associated function
error[E0308]: mismatched types
--> $DIR/trait-where-clause-const.rs:25:5
|
LL | T::c::<T>();
| ^^^^^^^^^^^ expected `host`, found `true`
|
= note: expected constant `host`
found constant `true`
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.