2018-05-06 16:50:35 -05:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:10:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | enum E where i32: Foo { V }
2018-05-06 16:50:35 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `i32`
|
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:12:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | struct S where i32: Foo;
2018-05-06 16:50:35 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `i32`
|
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:14:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | trait T where i32: Foo {}
2018-05-06 16:50:35 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `i32`
|
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:16:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | union U where i32: Foo { f: i32 }
2018-05-06 16:50:35 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `i32`
|
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:20:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / impl Foo for () where i32: Foo {
2018-06-08 11:00:03 -05:00
LL | | fn test(&self) {
2018-05-06 16:50:35 -05:00
LL | | 3i32.test();
LL | | Foo::test(&4i32);
LL | | generic_function(5i32);
LL | | }
LL | | }
| |_^ the trait `Foo` is not implemented for `i32`
|
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:28:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / fn f() where i32: Foo
2018-05-06 16:50:35 -05:00
LL | | {
LL | | let s = S;
LL | | 3i32.test();
LL | | Foo::test(&4i32);
LL | | generic_function(5i32);
LL | | }
| |_^ the trait `Foo` is not implemented for `i32`
|
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
2020-09-02 02:40:56 -05:00
error[E0277]: the trait bound `String: Neg` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:36:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
2018-05-06 16:50:35 -05:00
LL | | -s
LL | | }
2020-09-02 02:40:56 -05:00
| |_^ the trait `Neg` is not implemented for `String`
2018-05-06 16:50:35 -05:00
|
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
2018-10-09 20:53:53 -05:00
error[E0277]: `i32` is not an iterator
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:40:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / fn use_for() where i32: Iterator {
2018-05-06 16:50:35 -05:00
LL | | for _ in 2i32 {}
LL | | }
2018-10-09 20:53:53 -05:00
| |_^ `i32` is not an iterator
2018-05-06 16:50:35 -05:00
|
2020-09-02 02:40:56 -05:00
= help: the trait `Iterator` is not implemented for `i32`
2018-10-11 14:11:23 -05:00
= 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`
2018-05-06 16:50:35 -05:00
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
2018-07-10 16:10:13 -05:00
error[E0277]: the size for values of type `str` cannot be known at compilation time
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:52:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | struct TwoStrs(str, str) where str: Sized;
2018-06-19 17:53:51 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
2018-05-06 16:50:35 -05:00
|
2020-09-02 02:40:56 -05:00
= help: the trait `Sized` is not implemented for `str`
2018-05-06 16:50:35 -05:00
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
2018-07-10 16:10:13 -05:00
error[E0277]: the size for values of type `(dyn A + 'static)` cannot be known at compilation time
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:55:1
2018-05-06 16:50:35 -05:00
|
2019-05-28 13:46:13 -05:00
LL | / fn unsized_local() where Dst<dyn A>: Sized {
LL | | let x: Dst<dyn A> = *(Box::new(Dst { x: 1 }) as Box<Dst<dyn A>>);
2018-05-06 16:50:35 -05:00
LL | | }
2018-06-19 17:53:51 -05:00
| |_^ doesn't have a size known at compile-time
2018-05-06 16:50:35 -05:00
|
2020-09-02 02:40:56 -05:00
= help: within `Dst<(dyn A + 'static)>`, the trait `Sized` is not implemented for `(dyn A + 'static)`
2021-03-30 15:37:30 -05:00
note: required because it appears within the type `Dst<(dyn A + 'static)>`
--> $DIR/feature-gate-trivial_bounds.rs:48:8
|
LL | struct Dst<X: ?Sized> {
| ^^^
2018-05-06 16:50:35 -05:00
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
2018-07-10 16:10:13 -05:00
error[E0277]: the size for values of type `str` cannot be known at compilation time
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-trivial_bounds.rs:59:1
2018-05-06 16:50:35 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / fn return_str() -> str where str: Sized {
2018-05-06 16:50:35 -05:00
LL | | *"Sized".to_string().into_boxed_str()
LL | | }
2018-06-19 17:53:51 -05:00
| |_^ doesn't have a size known at compile-time
2018-05-06 16:50:35 -05:00
|
2020-09-02 02:40:56 -05:00
= help: the trait `Sized` is not implemented for `str`
2018-05-06 16:50:35 -05:00
= help: see issue #48214
2019-07-23 14:26:01 -05:00
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
2018-05-06 16:50:35 -05:00
2018-06-08 11:00:03 -05:00
error: aborting due to 11 previous errors
2018-05-06 16:50:35 -05:00
For more information about this error, try `rustc --explain E0277`.