about summary refs log tree commit diff
path: root/src/test/ui/methods/method-path-in-pattern.stderr
blob: 3f53ad768825b02e81e22b117be88a2507ec5147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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