]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-trivial_bounds.stderr
Rollup merge of #94478 - GuillaumeGomez:macro-generated-intra-doc-link, r=notriddle
[rust.git] / src / test / ui / feature-gates / feature-gate-trivial_bounds.stderr
1 error[E0277]: the trait bound `i32: Foo` is not satisfied
2   --> $DIR/feature-gate-trivial_bounds.rs:10:14
3    |
4 LL | enum E where i32: Foo { V }
5    |              ^^^^^^^^ the trait `Foo` is not implemented for `i32`
6    |
7    = help: see issue #48214
8    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
9
10 error[E0277]: the trait bound `i32: Foo` is not satisfied
11   --> $DIR/feature-gate-trivial_bounds.rs:12:16
12    |
13 LL | struct S where i32: Foo;
14    |                ^^^^^^^^ the trait `Foo` is not implemented for `i32`
15    |
16    = help: see issue #48214
17    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
18
19 error[E0277]: the trait bound `i32: Foo` is not satisfied
20   --> $DIR/feature-gate-trivial_bounds.rs:14:15
21    |
22 LL | trait T where i32: Foo {}
23    |               ^^^^^^^^ the trait `Foo` is not implemented for `i32`
24    |
25    = help: see issue #48214
26    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
27
28 error[E0277]: the trait bound `i32: Foo` is not satisfied
29   --> $DIR/feature-gate-trivial_bounds.rs:16:15
30    |
31 LL | union U where i32: Foo { f: i32 }
32    |               ^^^^^^^^ the trait `Foo` is not implemented for `i32`
33    |
34    = help: see issue #48214
35    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
36
37 error[E0277]: the trait bound `i32: Foo` is not satisfied
38   --> $DIR/feature-gate-trivial_bounds.rs:20:23
39    |
40 LL | impl Foo for () where i32: Foo {
41    |                       ^^^^^^^^ the trait `Foo` is not implemented for `i32`
42    |
43    = help: see issue #48214
44    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
45
46 error[E0277]: the trait bound `i32: Foo` is not satisfied
47   --> $DIR/feature-gate-trivial_bounds.rs:28:14
48    |
49 LL | fn f() where i32: Foo
50    |              ^^^^^^^^ the trait `Foo` is not implemented for `i32`
51    |
52    = help: see issue #48214
53    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
54
55 error[E0277]: the trait bound `String: Neg` is not satisfied
56   --> $DIR/feature-gate-trivial_bounds.rs:36:38
57    |
58 LL | fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
59    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Neg` is not implemented for `String`
60    |
61    = help: see issue #48214
62    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
63
64 error[E0277]: `i32` is not an iterator
65   --> $DIR/feature-gate-trivial_bounds.rs:40:20
66    |
67 LL | fn use_for() where i32: Iterator {
68    |                    ^^^^^^^^^^^^^ `i32` is not an iterator
69    |
70    = help: the trait `Iterator` is not implemented for `i32`
71    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
72    = help: see issue #48214
73    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
74
75 error[E0277]: the size for values of type `str` cannot be known at compilation time
76   --> $DIR/feature-gate-trivial_bounds.rs:52:32
77    |
78 LL | struct TwoStrs(str, str) where str: Sized;
79    |                                ^^^^^^^^^^ doesn't have a size known at compile-time
80    |
81    = help: the trait `Sized` is not implemented for `str`
82    = help: see issue #48214
83    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
84
85 error[E0277]: the size for values of type `(dyn A + 'static)` cannot be known at compilation time
86   --> $DIR/feature-gate-trivial_bounds.rs:55:26
87    |
88 LL | fn unsized_local() where Dst<dyn A>: Sized {
89    |                          ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
90    |
91    = help: within `Dst<(dyn A + 'static)>`, the trait `Sized` is not implemented for `(dyn A + 'static)`
92 note: required because it appears within the type `Dst<(dyn A + 'static)>`
93   --> $DIR/feature-gate-trivial_bounds.rs:48:8
94    |
95 LL | struct Dst<X: ?Sized> {
96    |        ^^^
97    = help: see issue #48214
98    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
99
100 error[E0277]: the size for values of type `str` cannot be known at compilation time
101   --> $DIR/feature-gate-trivial_bounds.rs:59:30
102    |
103 LL | fn return_str() -> str where str: Sized {
104    |                              ^^^^^^^^^^ doesn't have a size known at compile-time
105    |
106    = help: the trait `Sized` is not implemented for `str`
107    = help: see issue #48214
108    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
109
110 error: aborting due to 11 previous errors
111
112 For more information about this error, try `rustc --explain E0277`.