about summary refs log tree commit diff
path: root/src/test/ui/methods/method-path-in-pattern.stderr
blob: 03d6509c915d5cc8f9d826a98ae4ec888b42af89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0533]: expected unit struct/variant or constant, found method `<Foo>::bar`
  --> $DIR/method-path-in-pattern.rs:15:9
   |
LL |         Foo::bar => {}
   |         ^^^^^^^^

error[E0533]: expected unit struct/variant or constant, found method `<Foo>::bar`
  --> $DIR/method-path-in-pattern.rs:19:9
   |
LL |         <Foo>::bar => {}
   |         ^^^^^^^^^^

error[E0533]: expected unit struct/variant or constant, found method `<Foo>::trait_bar`
  --> $DIR/method-path-in-pattern.rs:23:9
   |
LL |         <Foo>::trait_bar => {}
   |         ^^^^^^^^^^^^^^^^

error: aborting due to 3 previous errors

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