rust/tests/ui/feature-gates/feature-gate-trivial_bounds.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

151 lines
5.1 KiB
Plaintext
Raw Normal View History

2018-05-06 21:50:35 +00:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
--> $DIR/feature-gate-trivial_bounds.rs:10:14
2018-05-06 21:50:35 +00:00
|
2019-03-09 12:03:44 +00:00
LL | enum E where i32: Foo { V }
| ^^^^^^^^ the trait `Foo` is not implemented for `i32`
2018-05-06 21:50:35 +00:00
|
= help: the trait `Foo` is implemented for `()`
2018-05-06 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
--> $DIR/feature-gate-trivial_bounds.rs:12:16
2018-05-06 21:50:35 +00:00
|
2019-03-09 12:03:44 +00:00
LL | struct S where i32: Foo;
| ^^^^^^^^ the trait `Foo` is not implemented for `i32`
2018-05-06 21:50:35 +00:00
|
= help: the trait `Foo` is implemented for `()`
2018-05-06 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
--> $DIR/feature-gate-trivial_bounds.rs:14:15
2018-05-06 21:50:35 +00:00
|
2019-03-09 12:03:44 +00:00
LL | trait T where i32: Foo {}
| ^^^^^^^^ the trait `Foo` is not implemented for `i32`
2018-05-06 21:50:35 +00:00
|
= help: the trait `Foo` is implemented for `()`
2018-05-06 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
--> $DIR/feature-gate-trivial_bounds.rs:16:15
2018-05-06 21:50:35 +00:00
|
2019-03-09 12:03:44 +00:00
LL | union U where i32: Foo { f: i32 }
| ^^^^^^^^ the trait `Foo` is not implemented for `i32`
2018-05-06 21:50:35 +00:00
|
= help: the trait `Foo` is implemented for `()`
2018-05-06 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
--> $DIR/feature-gate-trivial_bounds.rs:20:23
2018-05-06 21:50:35 +00:00
|
LL | impl Foo for () where i32: Foo {
| ^^^^^^^^ the trait `Foo` is not implemented for `i32`
2018-05-06 21:50:35 +00:00
|
= help: the trait `Foo` is implemented for `()`
2018-05-06 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
error[E0277]: the trait bound `i32: Foo` is not satisfied
--> $DIR/feature-gate-trivial_bounds.rs:28:14
2018-05-06 21:50:35 +00:00
|
LL | fn f() where i32: Foo
| ^^^^^^^^ the trait `Foo` is not implemented for `i32`
2018-05-06 21:50:35 +00:00
|
= help: the trait `Foo` is implemented for `()`
2018-05-06 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
error[E0277]: the trait bound `String: Neg` is not satisfied
--> $DIR/feature-gate-trivial_bounds.rs:36:38
2018-05-06 21:50:35 +00:00
|
LL | fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Neg` is not implemented for `String`
2018-05-06 21:50:35 +00:00
|
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
error[E0277]: `i32` is not an iterator
--> $DIR/feature-gate-trivial_bounds.rs:40:20
2018-05-06 21:50:35 +00:00
|
LL | fn use_for() where i32: Iterator {
| ^^^^^^^^^^^^^ `i32` is not an iterator
2018-05-06 21:50:35 +00:00
|
= help: the trait `Iterator` is not implemented for `i32`
2018-05-06 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
2018-07-10 21:10:13 +00:00
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> $DIR/feature-gate-trivial_bounds.rs:52:32
2018-05-06 21:50:35 +00:00
|
2019-03-09 12:03:44 +00:00
LL | struct TwoStrs(str, str) where str: Sized;
| ^^^^^^^^^^ doesn't have a size known at compile-time
2018-05-06 21:50:35 +00:00
|
= help: the trait `Sized` is not implemented for `str`
2018-05-06 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
2018-07-10 21:10:13 +00:00
error[E0277]: the size for values of type `(dyn A + 'static)` cannot be known at compilation time
--> $DIR/feature-gate-trivial_bounds.rs:55:26
2018-05-06 21:50:35 +00:00
|
LL | fn unsized_local() where Dst<dyn A>: Sized {
| ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
2018-05-06 21:50:35 +00:00
|
= help: within `Dst<(dyn A + 'static)>`, the trait `Sized` is not implemented for `(dyn A + 'static)`, which is required by `Dst<(dyn A + 'static)>: Sized`
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 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
2018-07-10 21:10:13 +00:00
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> $DIR/feature-gate-trivial_bounds.rs:59:30
2018-05-06 21:50:35 +00:00
|
LL | fn return_str() -> str where str: Sized {
| ^^^^^^^^^^ doesn't have a size known at compile-time
2018-05-06 21:50:35 +00:00
|
= help: the trait `Sized` is not implemented for `str`
2018-05-06 21:50:35 +00:00
= help: see issue #48214
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
LL + #![feature(trivial_bounds)]
|
2018-05-06 21:50:35 +00:00
error: aborting due to 11 previous errors
2018-05-06 21:50:35 +00:00
For more information about this error, try `rustc --explain E0277`.