mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
8df39667dc
This option guards the logic of writing long type names in files and instead using short forms in error messages in rustc_middle/ty/error behind a flag. The main motivation for this change is to disable this behaviour when running ui tests. This logic can be triggered by running tests in a directory that has a long enough path, e.g. /my/very-long-path/where/rust-codebase/exists/ This means ui tests can fail depending on how long the path to their file is. Some ui tests actually rely on this behaviour for their assertions, so for those we enable the flag manually.
46 lines
2.3 KiB
Plaintext
46 lines
2.3 KiB
Plaintext
error[E0599]: the method `filterx` exists for struct `Map<Repeat, [closure@issue-30786.rs:119:27]>`, but its trait bounds were not satisfied
|
|
--> $DIR/issue-30786.rs:120:22
|
|
|
|
|
LL | pub struct Map<S, F> {
|
|
| --------------------
|
|
| |
|
|
| method `filterx` not found for this struct
|
|
| doesn't satisfy `_: StreamExt`
|
|
...
|
|
LL | let filter = map.filterx(|x: &_| true);
|
|
| ^^^^^^^ method cannot be called on `Map<Repeat, [closure@issue-30786.rs:119:27]>` due to unsatisfied trait bounds
|
|
|
|
|
note: the following trait bounds were not satisfied:
|
|
`&'a mut &Map<Repeat, [closure@$DIR/issue-30786.rs:119:27: 119:34]>: Stream`
|
|
`&'a mut &mut Map<Repeat, [closure@$DIR/issue-30786.rs:119:27: 119:34]>: Stream`
|
|
`&'a mut Map<Repeat, [closure@$DIR/issue-30786.rs:119:27: 119:34]>: Stream`
|
|
--> $DIR/issue-30786.rs:98:50
|
|
|
|
|
LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
|
|
| --------- - ^^^^^^ unsatisfied trait bound introduced here
|
|
|
|
error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, fn(&u64) -> &u64 {identity::<u64>}>, [closure@issue-30786.rs:131:30]>`, but its trait bounds were not satisfied
|
|
--> $DIR/issue-30786.rs:132:24
|
|
|
|
|
LL | pub struct Filter<S, F> {
|
|
| -----------------------
|
|
| |
|
|
| method `countx` not found for this struct
|
|
| doesn't satisfy `_: StreamExt`
|
|
...
|
|
LL | let count = filter.countx();
|
|
| ^^^^^^ method cannot be called due to unsatisfied trait bounds
|
|
|
|
|
note: the following trait bounds were not satisfied:
|
|
`&'a mut &Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:131:30: 131:37]>: Stream`
|
|
`&'a mut &mut Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:131:30: 131:37]>: Stream`
|
|
`&'a mut Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:131:30: 131:37]>: Stream`
|
|
--> $DIR/issue-30786.rs:98:50
|
|
|
|
|
LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
|
|
| --------- - ^^^^^^ unsatisfied trait bound introduced here
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|