title: Closure cannot implicitly capture self parameter. Swift
body: <p>I've got an error "Closure cannot implicitly capture self parameter". Tell me please how it fix?</p>
  
  <pre><code>struct RepoJson {
  ...
      static func get(url: String, completion: @escaping (RepoJson!) -&gt; ()) {
          ...
      }
  } 
  
  struct UsersJson {
      var repo: RepoJson!
      init() throws {   
          RepoJson.get(url: rep["url"] as! String) { (results:RepoJson?) in
              self.repo = results //error here
          }
     }
  }
  </code></pre>