title: Swift with C struct pointer
body: <p>I have a C struct that contains a pointer, all defined in a C header:</p>
  
  <pre><code>struct testA {
    int iSignal;
    struct testB *test;
  };
  
  struct testB {
    int iPro;
  };
  </code></pre>
  
  <p>Then I have a Swift program to initialize an instance of this struct:</p>
  
  <pre><code>var a = testA()
  var b = testB()
  a.test = &amp;b // this line error
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>'&amp;' used with non-inout argument of type 'UnsafeMutablePointer&lt;testB&gt;'
  </code></pre>
  
  <p>Can anyone help?</p>