Commit 014daaa
committed
Tweak E0478
```
error[E0478]: lifetime bound not satisfied
--> $DIR/point-at-lifetime-obligation-from-trait-in-trait-object.rs:4:27
|
LL | broken: Box<dyn Any + 'a>
| --- ^^ lifetime bound not satisfied
| |
| this requires `'static`
|
note: lifetime parameter instantiated with the lifetime `'a` as defined here
--> $DIR/point-at-lifetime-obligation-from-trait-in-trait-object.rs:3:18
|
LL | struct Something<'a> {
| ^^
= note: but lifetime parameter must outlive the static lifetime
note: `'static` requirement introduced here
--> $SRC_DIR/core/src/any.rs:LL:COL
```1 parent 64b8cc9 commit 014daaa
File tree
6 files changed
+39
-20
lines changed- compiler/rustc_infer/src/infer/error_reporting
- tests/ui
- error-codes
- generic-associated-types
- lifetimes
- regions
6 files changed
+39
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
2709 | 2709 | | |
2710 | 2710 | | |
2711 | 2711 | | |
2712 | | - | |
| 2712 | + | |
| 2713 | + | |
2713 | 2714 | | |
2714 | 2715 | | |
2715 | 2716 | | |
| |||
2727 | 2728 | | |
2728 | 2729 | | |
2729 | 2730 | | |
2730 | | - | |
| 2731 | + | |
2731 | 2732 | | |
2732 | 2733 | | |
2733 | 2734 | | |
| |||
2753 | 2754 | | |
2754 | 2755 | | |
2755 | 2756 | | |
2756 | | - | |
| 2757 | + | |
2757 | 2758 | | |
2758 | 2759 | | |
2759 | 2760 | | |
2760 | 2761 | | |
2761 | 2762 | | |
2762 | 2763 | | |
2763 | 2764 | | |
2764 | | - | |
2765 | | - | |
2766 | | - | |
2767 | | - | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
2768 | 2771 | | |
2769 | 2772 | | |
2770 | 2773 | | |
| |||
2774 | 2777 | | |
2775 | 2778 | | |
2776 | 2779 | | |
2777 | | - | |
| 2780 | + | |
| 2781 | + | |
2778 | 2782 | | |
2779 | 2783 | | |
2780 | 2784 | | |
| |||
2786 | 2790 | | |
2787 | 2791 | | |
2788 | 2792 | | |
2789 | | - | |
2790 | | - | |
2791 | | - | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
2792 | 2809 | | |
2793 | 2810 | | |
2794 | 2811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments