about summary refs log tree commit diff
path: root/tests/ui/lint/inline-trait-and-foreign-items.stderr
blob: 4bde4bc590aa889bdb8214a4946d8730fe6e080b (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
error: `#[inline]` attribute cannot be used on associated types
  --> $DIR/inline-trait-and-foreign-items.rs:11:5
   |
LL |     #[inline]
   |     ^^^^^^^^^
   |
   = help: `#[inline]` can only be applied to functions

error: `#[inline]` attribute cannot be used on associated types
  --> $DIR/inline-trait-and-foreign-items.rs:22:5
   |
LL |     #[inline]
   |     ^^^^^^^^^
   |
   = help: `#[inline]` can only be applied to functions

error: `#[inline]` attribute cannot be used on associated types
  --> $DIR/inline-trait-and-foreign-items.rs:25:5
   |
LL |     #[inline]
   |     ^^^^^^^^^
   |
   = help: `#[inline]` can only be applied to functions

error: `#[inline]` attribute cannot be used on foreign statics
  --> $DIR/inline-trait-and-foreign-items.rs:30:5
   |
LL |     #[inline]
   |     ^^^^^^^^^
   |
   = help: `#[inline]` can only be applied to functions

error: `#[inline]` attribute cannot be used on foreign types
  --> $DIR/inline-trait-and-foreign-items.rs:33:5
   |
LL |     #[inline]
   |     ^^^^^^^^^
   |
   = help: `#[inline]` can only be applied to functions

error: unconstrained opaque type
  --> $DIR/inline-trait-and-foreign-items.rs:26:14
   |
LL |     type U = impl Trait;
   |              ^^^^^^^^^^
   |
   = note: `U` must be used in combination with a concrete type within the same impl

warning: `#[inline]` attribute cannot be used on associated consts
  --> $DIR/inline-trait-and-foreign-items.rs:7:5
   |
LL |     #[inline]
   |     ^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = help: `#[inline]` can only be applied to functions
note: the lint level is defined here
  --> $DIR/inline-trait-and-foreign-items.rs:4:9
   |
LL | #![warn(unused_attributes)]
   |         ^^^^^^^^^^^^^^^^^

warning: `#[inline]` attribute cannot be used on associated consts
  --> $DIR/inline-trait-and-foreign-items.rs:18:5
   |
LL |     #[inline]
   |     ^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = help: `#[inline]` can only be applied to functions

error: aborting due to 6 previous errors; 2 warnings emitted