about summary refs log tree commit diff
path: root/tests/ui/editions/never-type-fallback-breaking.e2024.stderr
blob: f0d4de364fbd0a7004bb17bcb933343c1c9a3054 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
error[E0277]: the trait bound `!: Default` is not satisfied
  --> $DIR/never-type-fallback-breaking.rs:22:17
   |
LL |         true => Default::default(),
   |                 ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `!`
   |
   = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
   = help: you might have intended to use the type `()` here instead

error[E0277]: the trait bound `!: Default` is not satisfied
  --> $DIR/never-type-fallback-breaking.rs:37:5
   |
LL |     deserialize()?;
   |     ^^^^^^^^^^^^^ the trait `Default` is not implemented for `!`
   |
   = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
   = help: you might have intended to use the type `()` here instead
note: required by a bound in `deserialize`
  --> $DIR/never-type-fallback-breaking.rs:33:23
   |
LL |     fn deserialize<T: Default>() -> Option<T> {
   |                       ^^^^^^^ required by this bound in `deserialize`

error[E0277]: the trait bound `(): From<!>` is not satisfied
  --> $DIR/never-type-fallback-breaking.rs:50:5
   |
LL |     help(1)?;
   |     ^^^^^^^ the trait `From<!>` is not implemented for `()`
   |
   = help: the following other types implement trait `From<T>`:
             `(T, T)` implements `From<[T; 2]>`
             `(T, T, T)` implements `From<[T; 3]>`
             `(T, T, T, T)` implements `From<[T; 4]>`
             `(T, T, T, T, T)` implements `From<[T; 5]>`
             `(T, T, T, T, T, T)` implements `From<[T; 6]>`
             `(T, T, T, T, T, T, T)` implements `From<[T; 7]>`
             `(T, T, T, T, T, T, T, T)` implements `From<[T; 8]>`
             `(T, T, T, T, T, T, T, T, T)` implements `From<[T; 9]>`
           and 4 others
   = note: required for `!` to implement `Into<()>`
note: required by a bound in `help`
  --> $DIR/never-type-fallback-breaking.rs:44:20
   |
LL | fn help<'a: 'a, T: Into<()>, U>(_: U) -> Result<T, ()> {
   |                    ^^^^^^^^ required by this bound in `help`

error[E0277]: the trait bound `!: Default` is not satisfied
  --> $DIR/never-type-fallback-breaking.rs:62:19
   |
LL |     takes_apit(|| Default::default())?;
   |                   ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `!`
   |
   = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
   = help: you might have intended to use the type `()` here instead

error[E0277]: the trait bound `!: Default` is not satisfied
  --> $DIR/never-type-fallback-breaking.rs:76:17
   |
LL |     takes_apit2(mk()?);
   |     ----------- ^^^^^ the trait `Default` is not implemented for `!`
   |     |
   |     required by a bound introduced by this call
   |
   = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
   = help: you might have intended to use the type `()` here instead
note: required by a bound in `takes_apit2`
  --> $DIR/never-type-fallback-breaking.rs:71:25
   |
LL | fn takes_apit2(_x: impl Default) {}
   |                         ^^^^^^^ required by this bound in `takes_apit2`

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0277`.