blob: 7036708756d6c9c732d89a0aacb77a6f568ee98c (
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
|
error[E0412]: cannot find type `Foo` in this scope
--> $DIR/dont-suggest-foreign-doc-hidden.rs:10:16
|
LL | pub fn test(_: Foo) {}
| ^^^ not found in this scope
|
help: consider importing this struct
|
LL + use local::Foo;
|
error[E0412]: cannot find type `Bar` in this scope
--> $DIR/dont-suggest-foreign-doc-hidden.rs:13:17
|
LL | pub fn test2(_: Bar) {}
| ^^^ not found in this scope
error[E0412]: cannot find type `Baz` in this scope
--> $DIR/dont-suggest-foreign-doc-hidden.rs:16:17
|
LL | pub fn test3(_: Baz) {}
| ^^^ not found in this scope
|
help: consider importing this struct
|
LL + use hidden_struct::Baz;
|
error[E0412]: cannot find type `Quux` in this scope
--> $DIR/dont-suggest-foreign-doc-hidden.rs:19:17
|
LL | pub fn test4(_: Quux) {}
| ^^^^ not found in this scope
|
help: consider importing this struct
|
LL + use hidden_struct::Quux;
|
error[E0277]: the trait bound `i32: Marker` is not satisfied
--> $DIR/dont-suggest-foreign-doc-hidden.rs:25:13
|
LL | test5::<i32>();
| ^^^ the trait `Marker` is not implemented for `i32`
|
= help: the following other types implement trait `Marker`:
Baz
Option<u32>
Quux
note: required by a bound in `test5`
--> $DIR/dont-suggest-foreign-doc-hidden.rs:22:13
|
LL | fn test5<T: hidden_struct::Marker>() {}
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `test5`
error: aborting due to 5 previous errors
Some errors have detailed explanations: E0277, E0412.
For more information about an error, try `rustc --explain E0277`.
|