summary refs log tree commit diff
path: root/src/test/ui/issue-36116.stderr
blob: df69dcb0d92c6be41a796ef0ec43b04381d3066f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
warning: unnecessary path disambiguator
  --> $DIR/issue-36116.rs:30:50
   |
LL |     let f = Some(Foo { _a: 42 }).map(|a| a as Foo::<i32>); //~ WARN unnecessary path disambiguator
   |                                                  ^^ try removing `::`

warning: unnecessary path disambiguator
  --> $DIR/issue-36116.rs:31:15
   |
LL |     let g: Foo::<i32> = Foo { _a: 42 }; //~ WARN unnecessary path disambiguator
   |               ^^ try removing `::`

error: compilation successful
  --> $DIR/issue-36116.rs:37:1
   |
LL | fn main() {} //~ ERROR compilation successful
   | ^^^^^^^^^^^^

error: aborting due to previous error