fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0423]: expected value, found module `a` 2 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:17:5 3 | 4LL | a.I 5 | ^- help: use the path separator to refer to an item: `::` 6 7error[E0423]: expected value, found module `a` 8 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:23:5 9 | 10LL | a.g() 11 | ^- help: use the path separator to refer to an item: `::` 12 13error[E0423]: expected value, found module `a` 14 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:29:5 15 | 16LL | a.b.J 17 | ^- help: use the path separator to refer to an item: `::` 18 19error[E0423]: expected value, found module `a::b` 20 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:35:5 21 | 22LL | pub const I: i32 = 1; 23 | --------------------- similarly named constant `I` defined here 24... 25LL | a::b.J 26 | ^^^^ 27 | 28help: use the path separator to refer to an item 29 | 30LL | a::b::J 31 | ~~ 32help: a constant with a similar name exists 33 | 34LL | a::I.J 35 | ~ 36 37error[E0423]: expected value, found module `a` 38 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:42:5 39 | 40LL | a.b.f(); 41 | ^- help: use the path separator to refer to an item: `::` 42 43error[E0423]: expected value, found module `a::b` 44 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:46:12 45 | 46LL | pub const I: i32 = 1; 47 | --------------------- similarly named constant `I` defined here 48... 49LL | v.push(a::b); 50 | ^^^- 51 | | 52 | help: a constant with a similar name exists: `I` 53 54error[E0423]: expected value, found module `a::b` 55 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:52:5 56 | 57LL | pub const I: i32 = 1; 58 | --------------------- similarly named constant `I` defined here 59... 60LL | a::b.f() 61 | ^^^^ 62 | 63help: use the path separator to refer to an item 64 | 65LL | a::b::f() 66 | ~~ 67help: a constant with a similar name exists 68 | 69LL | a::I.f() 70 | ~ 71 72error[E0423]: expected value, found module `a::b` 73 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:59:5 74 | 75LL | pub const I: i32 = 1; 76 | --------------------- similarly named constant `I` defined here 77... 78LL | a::b 79 | ^^^- 80 | | 81 | help: a constant with a similar name exists: `I` 82 83error[E0423]: expected function, found module `a::b` 84 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:65:5 85 | 86LL | pub const I: i32 = 1; 87 | --------------------- similarly named constant `I` defined here 88... 89LL | a::b() 90 | ^^^- 91 | | 92 | help: a constant with a similar name exists: `I` 93 94error[E0423]: expected value, found module `a` 95 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:72:9 96 | 97LL | a 98 | ^ not a value 99... 100LL | module!().g::<()>(); // no `help` here! 101 | --------- in this macro invocation 102 | 103 = note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info) 104 105error[E0423]: expected value, found module `a` 106 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:72:9 107 | 108LL | a 109 | ^ not a value 110... 111LL | module!().g; // no `help` here! 112 | --------- in this macro invocation 113 | 114 = note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info) 115 116error[E0423]: expected value, found module `a` 117 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:80:9 118 | 119LL | a.f() 120 | ^- help: use the path separator to refer to an item: `::` 121... 122LL | let _ = create!(method); 123 | --------------- in this macro invocation 124 | 125 = note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info) 126 127error[E0423]: expected value, found module `a` 128 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:85:9 129 | 130LL | a.f 131 | ^- help: use the path separator to refer to an item: `::` 132... 133LL | let _ = create!(field); 134 | -------------- in this macro invocation 135 | 136 = note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info) 137 138error: aborting due to 13 previous errors 139 140For more information about this error, try `rustc --explain E0423`.